First of all, describe my side of the Kindeditor error phenomenon:
1, under the IE8/FF are not the value;
2, when you click the Kindeditor button to switch to Full-screen mode input, and then return to normal mode, you can get the value;
3, I use jquery Click event Submission Form, submit, can not get the value;
4, directly with the form of the submission button can get the value.
To start using the method:
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 '
});
When the result submits the form textarea did not get the value of the Kindeditor text editor
The solution is 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 ();
}
});
Official explanation:
Sync ()
Sets the contents of the editor to the original textarea control.
Parameters: None
return: Keditor