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