-
-
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
Content filtering – tests, fixes and stability #341
Comments
That's true, there is no check in list item view-to-model converter and this is mistake. However, default converters have schema checks. There is schema filtering on view-to-model conversion, in So I agree this is more overall issue, that we don't care about schema, but this could be also reported as a bug in |
Important use case: #348. It's also needed for pasting. |
We closed something around 20 tickets in ckeditor5-paragraph, ckeditor5-image and ckeditor5-lists improving the stability of pasting and general conversion's UX (e.g. aligning disallowed structures to the editor's schema). I can still crash the editor from time to time but I think that we're on a level of stability where we can say that pasting is well covered. |
Could you point me to examples which crash editor (or is it just "copy a website that is big and rich enough")? Any idea what is crashing? |
E.g. https://www.theatlantic.com/entertainment/archive/2017/04/the-why-of-cooking-samin-nosrat/523923/ (if you copy the entire content) Previously I've some other website crashing but with the same error, I think. |
Ah, goddamn those bugs in Mapper :). Anyway it's worth looking at somewhere in near future. |
Currently, it's possible to load e.g.:
and you're even able to retrieve this data back :D.
The schema doesn't allow headings in list items:
So the heading or list should be filtered out. There will be many cases like this. Elements that we don't support or which combinations we don't support should be somehow, gracefully, handled upon conversion to the model.
This requires a lot of tests and most likely many fixes. So far we haven't tested for that and haven't used schema extensively. There will be time when we'll need to do that and this will be we'll want to filter pasted content in a stable way.
The text was updated successfully, but these errors were encountered: