-
-
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
Partial mentions should not be downcasted (not upcasted, like in the docs) #4633
Comments
I'm removing this whole bit from the docs. |
This might be obsolete after ckeditor/ckeditor5-mention#17. To be checked. |
So the Mention allows to downcast part of mention: <meta http-equiv="content-type" content="text/html; charset=utf-8">
Hello <span class="mention" data-mention="@Ted">@Te</span> |
What do you mean? Do you describe an expected or actual behaviour before or after that PR? :D |
It is current behavior (copy partial mention) and is fixed on PR (will not copy partial mention). I've added this comment because in my previous one I thought that ckeditor/ckeditor5-mention#17 might fix that issue. I've checked this and it is still present (you can copy partial mention on current master). |
One note in some earlier works we concluded that partial mention from data will be converter as-is. So it might be a case for a partial mention. We did this because we're not able to verify if the mention is partial when we upcast it to the model. We could do this asynchronously using feed callback and verify each mention if it is rendered as a whole mention. I don't recall who was proposing this (maybe it was @scofalik or @pjasiun) but we could do conversion asynchronously (feed might be asynchronous). Just to be clear :) |
Fix: Partial mentions should not be downcasted (e.g. not copied to clipboard). Closes #24.
Part of the documentation:
IMO, partial mentions should never end up in the data (any sort of data – also the data clipboard). No one should worry about that except us in the mention feature's code.
The text was updated successfully, but these errors were encountered: