jeudi 30 juillet 2015

create dynamic checkbox in wordpress editor button pop-up using window manager wordpress

I am trying to create dynamic checkbox in tinymce wordpress editor button. below is code. can anyone help me where i am doing mistake.

 editor.windowManager.open({    
                title: 'Property Listing For Multiple Selection',
                 popup_css : false, // Disable TinyMCE's default popup CS

for (var n = 0; n < P_name.length; n++) {

body: [
    {
        type: 'checkbox',
        //name: 'checkboxes',
        text:"MyCheckbox",
        value:"abcll",

                 onclick: function( b ) {
                     //if(b.data.title ==vine) {
                     alert(this.text());
                     alert(this.value());
                    //}
                 },
     },

  ]

 }
  },            
 }); //window manager close




Aucun commentaire:

Enregistrer un commentaire