ckeditor ボタンからコードビハインド クリック イベントに到達する必要があります。カスタム ckeditor ボタン (関数 () {
//Section 1 : Code to execute when the toolbar button is pressed
var a = {
exec: function (editor) {
var testObj = editor.parentNode;
var count = 1;
while (testObj.getAttribute('id') != "form1") {
testObj = testObj.parentNode;
}
testObj.getElementById('<%= btnUserControls.ClientID %>').click();
}
},
//Section 2 : Create the button and add the functionality to it
b='usercontrols';
CKEDITOR.plugins.add(b,{
init:function(editor){
editor.addCommand(b,a);
editor.ui.addButton('usercontrols', {
label:'User Controls',
icon: this.path + 'ascx.png',
command:b
});
}
});
})();
しかし、このコードは私のAsp.Netボタンに到達できないと思います.どこが間違っていますか? ありがとう。