开发者

tinymce text area onclick event change check box value

i am using tinymce editor for my form.

i have three instance of tiny mce editor for three text area.

on click a particular textarea i want to select a check box option .

first time i am using tinymce editor .

how can i select check for onclick 开发者_如何学Pythonof textarea.


The TinyMCE object exposes an onClick member you can bind a function to as follows:

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


You need to place this code into your plugins init-function. It adds an onclick handler:

// ed is the editor instance

ed.onNodeChange.add(function(ed){

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

});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜