-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Restricted editing exception blank spans #9646
Comments
Hi, thanks for the report. Steps to reproduce on docs:
|
Hi ckeditor5/packages/ckeditor5-restricted-editing/src/restrictededitingmodeediting.js Lines 161 to 170 in f6e48bb
I want to debug this case. I am looking for a way so that if the marker was already around the word, this line would not be executed anymore. What is your opinion? @FilipTokarski |
The thing there is that the restricted editing resurrection mechanism is bringing back markers on removed nodes. While calling |
There has been no activity on this issue for the past two years. We've marked it as stale and will close it in 30 days. We understand it may be relevant, so if you're interested in the solution, leave a comment or reaction under this issue. |
We've closed your issue due to inactivity over the last year. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it). |
@niegowski I added fix based on your comment. Can you take a look? PR: #17367 |
When call multiple times editor.setData(html), where html has restricted editing blocks, CKEditor inserts empty spans like this one:
<span class="restricted-editing-exception restricted-editing-exception_collapsed"></span>
Futhermore if u call setData 3 times with immutable html the result documents will include 3 empty spans even given html has only 1 restricted block.
Do you know any workarounds for this problem?).
Code:
Expect:
Result:
Env: Decoupled CKEDITOR5 build with enabled
restrictedEditing
pluginThe text was updated successfully, but these errors were encountered: