-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dropdown bar doesn't change when you move the cursor #29
Comments
Caret or cursor? I assume caret. This bug makes sense. Check ep_headings2 I think I wrote logic for that to make the select reflect the caret position. |
Yes, caret, thank you. I did notice that this worked correctly with the headings plugin. |
You may (or may not) be able to port that logic over with a shift from line attribute to character attribute. That would be super cool. If you get stuck I'm happy to jump in. Oh, I wonder if ep_comments does caret position detection too for knowing which comment caret is currently on?? |
I looked at ep_headings2, but I realized that ep_font_color is a bit more pertinent since it goes by character rather than line, and it seemed like the behavior was correct. But then I saw this:
If I select text that goes from red to green, it will short circuit the function and the dropdown will say "Font Size". However if my selection goes from red to green and back to red, None of these The best I can figure out for how to do it correctly would be to iterate over But, I'm looking at the implementation of |
If you select and area and change the font, and then move your cursor away from that area, the dropdown bar stays on that font name. It's misleading since it looks like you'd be typing in that font in the area you just clicked on.
etherpad-lite tag 1.8.14, ep_font_family from npm
The text was updated successfully, but these errors were encountered: