how to add tinymce listbox values in windowmanager

前端 未结 1 1224
一生所求
一生所求 2021-01-18 00:56

I open up a windowmanager and add a textfield and listbox:

editor.windowManager.open({
    title: \'Insert caption\',
    body: [
        {type: \'textbox\',         


        
相关标签:
1条回答
  • 2021-01-18 01:43

    I found out while searching in the official TinyMCE plugins. So this is how it's done:

    {type: 'listbox', 
        name: 'align', 
        label: 'align', 
        'values': [
            {text: 'Left', value: 'left'},
            {text: 'Right', value: 'right'},
            {text: 'Center', value: 'center'}
        ]
    }
    
    0 讨论(0)
提交回复
热议问题