-
-
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
Acknowledge inline elements #1096
Comments
The documentation for
But it doesn't mention any other additional steps, so it looks like all you need to do is create |
After F2F talks we concluded that in order to make inline widgets usable we need to:
|
Step 1.How to convert this view selection: <p>Foo<widget>bar[</widget>x]</p> To this model selection: <paragraph>Foo<widget name=bar>[</widget>x]</paragraph> I think we can use Step 2.We need to fix this model selection: <paragraph>Foo<widget name=bar>[</widget>x]</paragraph> Into: <paragraph>Foo[<widget name=bar></widget>x]</paragraph>
or:
<paragraph>Foo<widget name=bar></widget>[x]</paragraph> This may happen already (selection post-fixer). |
Other: Introduce support and utils for creating inline widgets. Closes [ckeditor/ckeditor5#1096](ckeditor/ckeditor5#1096).
Yes , i wrote a plugin use span by createContainerElement method . |
So far we didn't consider inline elements in the model. Blocks could only contain text. It changed since we introduces support for line breaks (
<br>
s).It caused a couple of bugs. Most notable ones are:
So far we managed to resolve #1024 in a quite clear way. #1083 was fixed in an ugly way, though (@scofalik explained that in ckeditor/ckeditor5-typing#156) and works with
<softBreak>
elements only. We need a more general and bulletproof solution.PS. There's a chance that the issues which one might experience with inline widgets are related to this – we don't handle any other node than text in ckeditor5-typing.
The text was updated successfully, but these errors were encountered: