Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change fixes the following bug: 1. Start with plain text "foo bar" in the editor 2. Highlight "bar" (NB: it's important to select text that's not at the start) 3. Hit Ctrl+B to apply bold formatting 4. Notice that the bold button in the toolbar doesn't receive the `ql-active` class, when it should This appears to happen because the listener on `SCROLL_OPTIMIZE` gets an incorrect range. Instead of listening on optimize, we listen for all `EDITOR_CHANGE` events, which _do_ get the correct range.
- Loading branch information