Skip to content

pantoken-root / renderers/tinymce/src / createComponentsPlugin

Fonction: createComponentsPlugin() ​

createComponentsPlugin(options): (editor) => void

Créer la fabrique de plugin du sélecteur de composants. Retourne une fonction compatible avec tinymce.PluginManager.add().

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

Paramètres ​

options ​

ComponentsPickerOptions

Retourne ​

(editor) => void