Skip to content

pantoken / renderers/tinymce/src / createComponentsPlugin

Fonction: createComponentsPlugin()

createComponentsPlugin(options): (editor) => void

Créer la fabrique du plugin du sélecteur de composants. Renvoie une fonction adaptée à tinymce.PluginManager.add().

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

Paramètres

options

ComponentsPickerOptions

Renvoie

(editor) => void