Open ghnat opened 7 years ago
I am running into similar issue
Repro steps (also see attached recording)
Behavior Space is remove. 'ins' tag is also deleted. See status bar below
Expected behavior Only space is expected to be removed. NOT ins tag
Note: This bug doesnt repro on editor hosted on http://www.loopindex.com/lite/demo/ When I inspect demo config, I noted following. When I apply same config to my instance, bug doesnt repro.
config.enterMode = CKEDITOR.ENTER_BR;
update: we found following. Currently working to determine if this leads to fixing the issue.
CkEditor internal code has toHtml()
function that makes HTML compliant per its own DTD. There job is to move <ins>
tag from block level to inline. In conditions that lead to this bug, this is not happening.
This issue is also causing a lot of headache for our users too. They are using the editor in our app for a lot of copy - pasting tasks, which require Undos from time to time, which corrupts the tracking data... I would really appriciate if someone have figured out a solution or workaround for this. (Toggling P-mode to BR-mode in CKEDITOR is not an option for us).
There is a problem with undo functionality, not sure if this is related to lite plugin or some related project like ice. Attached are two movies, first where things work as expected, second when they don't.
How to reproduce bad behavior.
<p>test</p>
<p>
, not<br>
).To have it hebave correctly two alternative approaches are possible as I found:
<p>
tag and then combining copy/paste with undo works fine.<p>
) then instead of pasting text from libre/word paste from regular text editor like sublime that does linebreaks as<br>
, not<p>
.So basically - if either you have
<p>
in ckeditor and paste<br>
s or have<br>
s in ckeditor and paste<p>
s things seems to work.<br> + <br>
should also work. But combining<p>
in ckeditor and<p>
in pasted text causes trouble.