-
-
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
Add tests for an inline editor on a <p> or <h1> #2253
Comments
Interesting aspect of this is that the editor class needs to know to what model element the DOM element on which the editor is create maps. E.g. if you create the editor on a It's tricky... :) |
Can't wait to see the demo. It's a killer feature for complex forms and content editing systems. |
Hi, do you have some news on ck5 supporting other elements (Hn, P, etc.) than DIV ? |
We didn't work on this yet. We'll check soon if we can give it a try, but I can't promise anything yet (also because we don't know how much work it will require). |
@Reinmar I create a PR which adds manual test for inline editor. Test contains editor created over |
@Reinmar more detailed analysis related to this topic. I add branch There is a manual test
I noticed one thing, which is rather related to missing feature in the editor. Inline images are removed during upcast. As images in editor became block element and that's why those are lost during conversion. |
OK, thanks guys for the work. It looks great. I concluded our findings in #762 and would like to close this ticket as the ckeditor5's one is more generic. Let's continue there. |
AFAICS https://github.com/ckeditor/ckeditor5-editor-inline/issues/3 discusses how the editor should work on various elements.
Here, I'd just to have a sample for what happens now when you enable an editor on e.g.
<p>
. I can already tell that there may be problems with what kind of root is created in the model etc. So, let's see first some manual test and it will give some ideas what to test automatically.The text was updated successfully, but these errors were encountered: