Commonly used methods:
var KE;
Kindeditor.ready (function (K) {
KE = K.create ("textarea[name= ' article_content ')", {
Items: [' source ', ' | ', ' fullscreen ', ' undo ', ' Redo ', ' cut ', ' copy ', ' Paste ', ' | ', '
' FontName ', ' fontsize ', ' ForeColor ', ' hilitecolor ', ' bold ', ' italic ', ' underline ',
' Removeformat ', ' justifyleft ', ' justifycenter ', ' justifyright ', ' insertorderedlist ',
' Insertunorderedlist ', ' | ', ' emoticons ', ' image ', ' link ', ' | ', ' about ',
SyncType: "Form",
Aftercreate:function () {
var self = this;
Self.sync ();
},
Afterchange:function () {
var self = this;
Self.sync ();
},
Afterblur:function () {
var self = this;
Self.sync ();
}
});
});
Kindeditor dynamically creates an online text editor in the method as follows:
Kindeditor.create (' textarea[id= ' fieldContent1 "] ', {
Items: [' source ', ' | ', ' fullscreen ', ' undo ', ' Redo ', ' cut ', ' copy ', ' Paste ', ' | ', '
' FontName ', ' fontsize ', ' ForeColor ', ' hilitecolor ', ' bold ', ' italic ', ' underline ',
' Removeformat ', ' justifyleft ', ' justifycenter ', ' justifyright ', ' insertorderedlist ',
' Insertunorderedlist ', ' | ', ' emoticons ', ' image ', ' link ', ' | ', ' about ',
SyncType: "Form",
Aftercreate:function () {
var self = this;
Self.sync ();
},
Afterchange:function () {
var self = this;
Self.sync ();
},
Afterblur:function () {
var self = this;
Self.sync ();
}
});