Skip to content
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

Show blocks works partially with decoupled editor #17881

Open
Dumluregn opened this issue Feb 4, 2025 · 0 comments
Open

Show blocks works partially with decoupled editor #17881

Dumluregn opened this issue Feb 4, 2025 · 0 comments
Labels
package:editor-decoupled package:show-blocks type:bug This issue reports a buggy (incorrect) behavior.

Comments

@Dumluregn
Copy link
Contributor

πŸ“ Provide detailed reproduction steps (if any)

  1. Add showBlocks feature to any decoupled editor (you can use a link to builder)
  2. Open demo.
  3. Use "Show blocks" button.

βœ”οΈ Expected result

Block labels are visible:

Image

❌ Actual result

Block labels are missing:

Image

❓ Possible solution

Labels styling expects the following structure:

[dir="ltr"] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h2

Important part is, the editable element has to be a child of element with dir attribute. However, it decoupled editor it's one and the same element:

Image

so it isn't matched by the selector and the label is not visible. Note that the dotted outline is visible as it doesn't check the dir attribute.

πŸ“ƒ Other details

  • Browser: …
  • OS: …
  • First affected CKEditor version: …
  • Installed CKEditor plugins: …

If you'd like to see this fixed sooner, add a πŸ‘ reaction to this post.

@Dumluregn Dumluregn added package:editor-decoupled package:show-blocks type:bug This issue reports a buggy (incorrect) behavior. labels Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:editor-decoupled package:show-blocks type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

No branches or pull requests

1 participant