-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Decorators with fixed-length ranges makes editing unstable #414
Comments
This just seems like a bug to me. Thanks for reporting. |
The culprit is our This issue affects all browsers except Firefox because there we rely on Firefox's internal selection state and do force update it. This issue gets worse if we try to apply a spellcheck correction to a word whose first character is at the lower bound or whose last character is at the upper bound of the decorator. In Chrome that word will then be put into its own DOM node, thus really messing up our comparison. |
I think |
I'm facing a related problem (I think.) With the cursor before the As you'd guess, the actual content here is just "@aviraldg:matrix.org testing" |
Hello,
I have been struggling with decorators recently. When decorators decorate arbitrary spans of characters (that do not match words), editing those same spans results in weird behaviors from the editor.
Here is a Gist of a single HTML page with simple code to reproduce the issue. The Gist shows an editor with the first 10 characters of each block highlighted in red. Positioning the caret (represented by
[]
) at the start of the text:And typing
ABC
, results in this weird state:Do decorators need to adapt to the editing in some ways ? Are there some rules I ignore about what can be decorated and what should not ?
Thank you for your time.
The text was updated successfully, but these errors were encountered: