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