-
-
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
Wrong content inside editor (<div>
with TrackChanges)
#7720
Comments
cc @scofalik |
I confirm that in option B additional paragraph is created. I'd guess this is because the In the next release we are introducing a new way to convert markers. Your new data should look like this: <div><p data-suggestion-start-before="insertion:suggestion-1:user-2">asd<suggestion-end name="insertion:suggestion-1:user-2"></suggestion-end></p></div> Now, markers that are right before/after an element are stored as attributes. Only markers "in text" are represented by tags. I hope this will resolve your problem. I've tested loading the above HTML and it worked as expected. |
@scofalik, @lslowikowska - Wow. |
I understand that this is a big change, however it was a must. We are certainly very sorry to introduce such breaking changes. Here is the issue that is related to that change: #7556. The last post in the issue discusses "migration" a bit. Other notes in this regard:
|
I think I could also write instruction for those who process editor data on how their tools can be changed to fit the new data structure. |
@kaluginserg We are also working on the solution that will let you get the data with suggestions accepted or rejected straight from the editor. This should be ready in the next iteration (at the end of August). Maybe this feature would also solve some of your problems? |
Maybe. We hope) But I am not sure that I right understand what you mean about "get the data with accepted/rejected suggestions".. |
This is an off-topic discussion for this issue so let's not follow it further. The feature will simply let you get:
Instead of:
Of course, it will apply to all types of suggestion. Same for discarding suggestions, you will be able to get:
straight from the editor. |
These changes - won't help us. Even I am not sure that we will use this feature. Because we need store all metadata in the markup (we do many server side manipulations with accepting/rejecting - we have parsers for all cke5 generated markup...).
@scofalik, @lslowikowska - is there a date, when we can look at these instructions? |
I've just finished writing: #7556 (comment) I hope this will be helpful. |
Edit: I edited |
📝 Provide detailed reproduction steps (if any)
A) option:
B) option (just
div
extra wrapper for initialData)✔️ Expected result
The both results(A and B) should be the same or B should throw exception.
❌ Actual result
A =>
B =>
Result should be the same as A or an exception should be thrown.
📃 Other details
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: