2010-06-29 3 views

Répondre

0

Vous devez placer ce code dans la fonction d'initialisation de votre plug-in. Il ajoute un gestionnaire onclick:

// ed is the editor instance 

ed.onNodeChange.add(function(ed){ 

    // here you need to run the code to activate your checkbox 

}); 
1

L'objet TinyMCE expose un membre onClick vous pouvez lier une fonction comme suit:

//ed as your tiny-mce variable 
ed.onClick.add(function(){ 
    //Toggle checkbox here 
}); 
Questions connexes