-
-
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
Introduce RawElement (aka ShadowElement) #4469
Comments
BTW, I know there were some other ideas for this name – |
As others I also think that
As such my wild propositions are:
|
|
Mmm.. not really. First of all, you didn't give any thought to just adding a new element.
However, the new element can be linked to the model and it probably should be able to be widgetized. I am for creating a new type of element and name it |
Maybe I'm missing something but I think that the widget's element and what is linked to the model would be a parent to Edit: but I'm fine with |
Aaaand, after a long F2F discussion we came to the following conclusions:
|
❤️ |
Now I see the use-case for After reading this again I get the distinction between |
That's not necessarily true. You can have But the distinction makes sense:
Questions:
|
I think of the
I kinda lean towards this actually. The Still I'm undecided :/ |
👍 for separate |
A simple use-case for |
I stumbled upon this again. Similar case to what @jodator posted above. |
Let's not forget about this fix: #1684. |
Feature (engine): Implemented the view `RawElement`. Implemented the `DowncastWriter#createRawElement()` method. Closes #4469. Fix (media-embed): The editor placeholder should disappear after inserting media into an empty editor. Closes #1684. Docs (ckeditor5): Used the `RawElement` instead of `UIElement` in the "Using a React component in a block widget" guide (see #1684). Internal (media-embed): Removed the `getFillerOffset()` hack from the `createMediaFigureElement()` helper that is no longer needed since the media content is rendered using `RawElements` (see #1684). BREAKING CHANGE (engine): The `DomConverter#getParentUIElement()` method was renamed to `DomConverter#getHostViewElement()` because now it supports both `UIElement` and `RawElement` (see #4469).
See this comment: https://github.com/ckeditor/ckeditor5-engine/issues/1643#issuecomment-456814970
The nameUIElement
is misleading because this element can also be used to e.g. output raw content to the data.We also need to renamecreateUIElement()
and perhaps some other helpers.The text was updated successfully, but these errors were encountered: