The command bundle @trevixal/ui expects, so the UI package can offer embeds without importing this one:
@trevixal/ui
createEditorUI(editor, { container, embedCommands: embedUICommands(options) }) Copy
createEditorUI(editor, { container, embedCommands: embedUICommands(options) })
Pass the same options the schema was created with, so the toolbar's allowlist matches the parser's.
options
Readonly
Auto-detect: YouTube/Vimeo player, direct media, or an allowlisted iframe.
The command bundle
@trevixal/uiexpects, so the UI package can offer embeds without importing this one:Pass the same
optionsthe schema was created with, so the toolbar's allowlist matches the parser's.