-
-
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
Inline widget styling #1633
Comments
cc @jodator |
Right now we do not support this out of the box. I think that view writers should be updated to support Edit: I've managed to crate a <p>
<strong>Bold </strong>
<placeholder><strong>{place}</strong></placeholder>
<strong>.</strong>
</p> but shouldn't it be? <p>
<strong>Bold
<placeholder>{place}</placeholder>
.</strong>
</p> |
Hi @jodator
And about using the private API, that is exactly why I opened this issue, it doesn't look right. |
Anyway, tl;dr is that unfortunately this isn't supported yet and it may not be that easy to introduce (in a stable way). |
Hello, any update on this ? Placeholders needs to be styled with font, bold, italic, etc. Their purpose is to provide a block that will be replaced with actual text. Without correct style they are not usable. |
Not yet. It will be a pretty big change, unfortunately, so we need to find space for it in our roadmap. At the moment, I can't promise anything, but it's high on our wishlist too. |
Any progress on this? |
Is there any update on this feature? |
Hello, Any information on this feature ? :) |
I created a workaround for this. It's not optimal but instead of creating |
Any updates with the new version? |
Hi! I will be really interested in this feature too! |
Hi, |
Hey @dkrahn, hit the exact same situation following the tutorial. Are you able to elaborate on how you achieved your workaround as I haven't been able to figure out how to get it working.
but this part:
I tried switching
in the tutorial for
but I get the error Any guidance would be great |
Fix (engine): `DowncastWriter` should handle `UIElements` consistently while wrapping with and inserting them into attribute elements. Closes #8959. Feature (engine): `ContainerElement` can be marked as `isAllowedInsideAttributeElement` in order to allow wrapping it with attribute elements. Useful for instance for inline widgets. Other element types (UI, Raw, Empty) have this flag on by default but it can be changed via `options.isAllowedInsideAttributeElement` to `false`. Read more in `DowncastWriter#create*()` methods documentation. Closes #1633.
Is this a bug report or feature request? (choose one)
🐞 Bug report or documentation improvement
💻 Version of CKEditor
12.0.0
📋 Steps to reproduce
✅ Expected result
From my perspective, it would be desired of the inline widget to be treated as part of the text when it comes to styling(bold, italic, font...).
❎ Actual result
The text around the inline widget get styled but the widget itself does not.
📃 Other details that might be useful
I was able to get around this issue with changing the createContainerElement with createAttributeElement, adding a random id and priority 20.
And then adding the text using the private _insertChild converting elementToElement. But this does not seam right.
If you'd like to see this feature implemented, add 👍 to this post.
The text was updated successfully, but these errors were encountered: