Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

About the "body" parameter for tinymce's "windowManager.open" method

I'm looking at this example w.r.t creating tinyMCE plugin. What I want to do is to open a popup, and the content inside the popup is specified programmatically, without having to load a physical page at certain url:

Add an input element of type=file in tinymce container

Basically the author solved the issue about a plugin he was trying to create. I'm trying the same code but the popup is completely empty for me, no errors, any suggestions? Where can I find info about the "body" parameter when calling "windowManager.open", like:

// Open window
editor.windowManager.open({
    title: 'Example plugin',
    body: [{
        type: 'textbox',
        name: 'code',
        label: 'Video code'
    }],
...
like image 827
John Jiang Avatar asked Apr 10 '14 14:04

John Jiang


1 Answers

Try giving the textbox a size:

   // Open window
  editor.windowManager.open(
    {title: 'Example plugin',
     body: [
            {   type: 'textbox',
                size: 40,
                name: 'code',
                label: 'Video code'
             }
           ],
     .....
like image 78
Thariama Avatar answered Nov 09 '22 11:11

Thariama