ReadonlyinsertAudio
insertAudio: (src: string) => Command
ReadonlyinsertEmbed
insertEmbed: (url: string) => Command
ReadonlyinsertIframe
insertIframe: (src: string, title?: string) => Command
ReadonlyinsertLinkCard
ReadonlyinsertVideo
insertVideo: (src: string) => Command
ReadonlysetVideoChapters
setVideoChapters: (text: string | null) => Command
ReadonlyvideoChaptersAt
videoChaptersAt: (state: EditorState) => string | null
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.