ckeditor5-math icon indicating copy to clipboard operation
ckeditor5-math copied to clipboard

Huge portions of text being deleted when typing something after a math expression.

Open dcfreire opened this issue 4 years ago • 2 comments

Hey, I've been having this problem for a few months but still have not found out what is causing it. It happens constantly though. image This line for example, after typing any character at the end turns into image I've been working around this by inserting a dot at the end of the line and typing my texts before the dot. But even then sometimes I get unexpected behavior that is similar to this, such as the inability to delete characters using backspace. I can reproduce this problem every time using this string

The frontier of a set 

(X \subseteq \R^2)

 is the set 

(Y)

 of all points 

(y \in \R^2)

 such that every neighborhood of 

(y)

 meets both 

(X)

 and 

(\R^2 \setminus X)

. Note that if 

(X)

The formatting is off, but I just copied directly from the editor.

dcfreire avatar Feb 01 '21 20:02 dcfreire

A simpler test case:

Start with an empty editor or a new line and press these keys:

1. <ctrl-m>
2. x
3. <return>
4. <space>

doctorjames avatar Mar 02 '21 17:03 doctorjames

@tony in https://github.com/isaul32/ckeditor5-math/pull/47#issuecomment-847058447 you said you weren't able to reproduce the issue. Here is a reproduction using [email protected]: https://jsfiddle.net/sasquacz/hm05b9tn/28/

There are two different scenarios described, I'm not sure if they are caused by the same root cause.

rogatty avatar Jan 25 '22 10:01 rogatty