-
-
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
Making changes directly in the source view drops the made changes on save #10505
Comments
Thanks. To rephrase: |
Question: Should the content of the textarea be passed through the model?
CKEditor 4 returns exactly what's in the textarea, so this is possible: Is it a feature or a bug? |
@Reinmar brought this up in a meeting with @lauriii and I. Points in favor:
So +1! |
Scope:
|
We're updating to today's https://github.com/ckeditor/ckeditor5/releases/tag/v31.0.0 release in Drupal and unfortunately this bug is not fixed: 10505.not.fixed.in.31.0.0.720p.mov😞 |
I couldn't reproduce this without editing the data in the source editing mode so that it returns to the original state, but I found an issue with the scenario:
this is happening only if you modify sth in the editing mode and then rollback to the previous content, only then the editor returns the previous data because the internal storage of the editor data while entering source editing mode was not updated on Another case that I could not reproduce is the thing that we compare that "previous" content with the data updated on the I pushed some changes to this branch, it would be great if you could verify if it solves your issues. |
I tried to reproduce the original bug here (https://ckeditor.com/docs/ckeditor5/latest/features/source-editing.html) and it seems to work. I guess the specific scenario that @niegowski mentioned may be still broken, but it's quite a specific one. |
Confirmed that For now I'm concluding that this is a problem on the Drupal side, but it sure is mysterious! Thank you and sorry for the false alarm! 🙈 If you want to follow along: https://www.drupal.org/project/ckeditor5/issues/3229174#comment-14280987 |
It is an issue i've stumbled across when I was testing the CKEditor 5 contrib module in Drupal 9. I've initially reported it in the according issue tracker ( https://www.drupal.org/project/ckeditor5/issues/3229174 ) but Wim Leers asked me today if I could report it upstream.
📝 Provide detailed reproduction steps (if any)
Three bold words
source
buttonor you could also change the string to
Three bold words plus two
8. Hit directly save and dont switch back to the regular mode beforehand
✔️ Expected result
I would expect that
Three bold
is displayed in bold andwords
not in bold. And in case that I've extended the phrase theplus two
would be also shown.❌ Actual result
All changes are lost if the document is saved directly in the source view. If I switch back to the regular view beforehand and save all changes are properly saved.
📃 Other details
If you need more informations please let me know.
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: