- Issue created by @bellesmanieres
When selecting anything in the WYSIWYG, that is not a paragraph embed, the embed button should be disabled. At the moment, you can select any type of "widget", and the button stays enabled.
If you then click the embed button, it will crash, as it isn't acting on a "embeddedParagraph".
Insert any type of widget (eg, from https://www.drupal.org/project/entity_embed → ) and select it. You would be able to still click on the Paragraph Embed button, and trigger an error.
In js/ckeditor5_plugins/embeddedParagraph/src/command.js replace the logic from `refresh` with something similar to how https://www.drupal.org/project/url_embed → does it, for example.
Active
3.0
Code