-
-
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
Allow bare <img> to be converted to model #5032
Comments
Also, it might be worth checking if view to model conversion could not be simplified by using view converter builder, and if not - propose a solution to possibly extend builder with missing functionalities. |
I also mentioned another case in https://github.com/ckeditor/ckeditor5-image/issues/11 where a containing block will need to be split upon conversion to model. |
So in the view we've got (let's assume it was pasted): <p>x<img>x</p> In the model The idea that @scofalik and @pjasiun proposed is to first convert the image into the |
Related thread: https://github.com/ckeditor/ckeditor5-paragraph/issues/11. |
PR adding conversion of bare I feel that |
Fix: Bare `<img>` (not wrapped with `<figure class="image">`) can now be pasted into the editor. Closes #8.
Right now conversion for from view in data pipeline is very strict and only converts images represented by:
We should allow single
<img>
(not wrapped in a<figure>
element) to be converted to model image.The text was updated successfully, but these errors were encountered: