Support » Fixing WordPress » insert dynamic content in tinymce button dropdown Listbox

  • hi guys ,

    how i can insert dynamic content in wp-editor. below is my code.
    values = [];
    for(var i in my_plugin)
    values.push({text: my_plugin[i],value: i });
    alert(my_plugin);
    my_plugin is returning data it is displaying right as well but it is not inserting in wp-editor

    menu: [ { text: “Insert Property Listing”, type: ‘listbox’, name:’plist’ , onselect:function(v) {
    shortcode = ‘[recent-postsss/]’;
    ed.execCommand(‘mceInsertContent’, 0, shortcode);
    //ed.insertContent(this.value());
    }, values: values , },
    ]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘insert dynamic content in tinymce button dropdown Listbox’ is closed to new replies.