-
-
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
HtmlEmbed UI doesn't reflect isEnabled/isReadOnly state #10182
Comments
We discussed this issue internally. Some (random) notes:
|
Fixed in #10570 |
FYI: I prepared a PR with a |
Idea: Merge But, this will mean that when the selection is e.g. in a table in which HTML embed is disallowed (by the schema) the "Edit" buttons on all widgets will be disabled. Another idea: Have a separate command for updating a given widget (passed to Let's ignore this problem, though, because the topic keeps growing beyond control. Scope:
|
Fix (html-embed): Embed buttons should reflect the read-only state of the editor and the HTML embed command. Closes #10182. MAJOR BREAKING CHANGE (html-embed): The InsertHtmlEmbedCommand and UpdateHtmlEmbedCommand have been replaced by HtmlEmbedCommand which is now responsible for both tasks. The command can be executed via editor.execute( 'htmlEmbed' ). See the API reference for more information.
Closed in #10682 |
📝 Provide detailed reproduction steps (if any)
✔️ Expected result
The "pencil" button of the existing htmlembed blocks in the content should be in disabled state.
❌ Actual result
The "pencil" button of the existing htmlembed blocks is enabled and allows one to change the html code in the block (but not to save it)
The text was updated successfully, but these errors were encountered: