javascript - how to add tinymce listbox values in windowmanager -
i open windowmanager , add textfield , listbox:
editor.windowmanager.open({ title: 'insert caption', body: [ {type: 'textbox', name: 'text', label: 'text', 'multiline': 'true', 'minwidth': 450, 'minheight': 100}, {type: 'listbox', name: 'align', label: 'align', 'values': ['pull-left','pull-right']} ],
the listbox displayed, not values. in documentation (http://www.tinymce.com/wiki.php/api4:class.tinymce.ui.listbox) states: "array values add list box."
what doing wrong?
i found out while searching in official tinymce plugins. how it's done:
{type: 'listbox', name: 'align', label: 'align', 'values': [ {text: 'left', value: 'left'}, {text: 'right', value: 'right'}, {text: 'center', value: 'center'} ] }
Comments
Post a Comment