Skip to content

pantoken / renderers/tinymce/src / createComponentsPlugin

Hàm: createComponentsPlugin()

createComponentsPlugin(options): (editor) => void

Tạo factory plugin bộ chọn thành phần. Trả về một hàm phù hợp cho tinymce.PluginManager.add().

Sử dụng: tinymce.PluginManager.add( "pantokenComponents", createComponentsPlugin({ model, currentAssets, onMissingAsset }) );

Tham số

options

ComponentsPickerOptions

Trả về

(editor) => void