BadIdeaFactory / truthgoggles

🤔 is hard, let the mindless 🤖 s help you do it
Apache License 2.0
3 stars 0 forks source link

Enable the editor #52

Closed slifty closed 5 years ago

slifty commented 5 years ago

The language checker editor is where users actually plop text that needs... language checking!

We want to get that actually working, and by working here I mean it will:

  1. Update the state of the app when text changes (each keystroke is fine for now).
  2. Highlight identified phrases (note: enabling phrase lookup isn't in scope for this issue, so the list of possible flags may just be dummy data).
  3. Allow the user to click on a phrase and have that selection propogate state back to the App.

The styling doesn't need to be there yet, but we should get the functionality to the point that visual indicators of highlights and selections work.

Since we don't have a working flag toggle, we also don't need to care about toggle state yet.

image
slifty commented 5 years ago

This looks like it will be the perfect approach for highlighting text: https://codersblock.com/blog/highlight-text-inside-a-textarea/