Skip to content

pantoken-root / renderers/tinymce/src / createComponentsPlugin

Функція: createComponentsPlugin() ​

createComponentsPlugin(options): (editor) => void

Створює фабрику плагіна вибору компонентів. Повертає функцію, придатну для tinymce.PluginManager.add().

Використання: tinymce.PluginManager.add( "pantokenComponents", createComponentsPlugin({ model, currentAssets, onMissingAsset }) );

Параметри ​

options ​

ComponentsPickerOptions

Повертає ​

(editor) => void