Skip to content

pantoken / renderers/tinymce/src / createComponentsPlugin

Fungsi: createComponentsPlugin()

createComponentsPlugin(options): (editor) => void

Buat kilang pemalam pemilih komponen. Mengembalikan fungsi yang sesuai untuk tinymce.PluginManager.add().

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

Parameter

options

ComponentsPickerOptions

Mengembalikan

(editor) => void