Skip to content

pantoken / renderers/tinymce/src / createComponentsPlugin

Функція: createComponentsPlugin()

createComponentsPlugin(options): (editor) => void

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

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

Параметри

options

ComponentsPickerOptions

Повертає

(editor) => void