Skip to content

pantoken-root / renderers/tinymce/src / createComponentsPlugin

Funktion: createComponentsPlugin() ​

createComponentsPlugin(options): (editor) => void

Opret fabrikken for komponent-plukkerplugin. Returnerer en funktion, der er egnet til tinymce.PluginManager.add().

Brug: tinymce.PluginManager.add( "pantokenComponents", createComponentsPlugin({ model, currentAssets, onMissingAsset }) );

Parametre ​

options ​

ComponentsPickerOptions

Returnerer ​

(editor) => void