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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -