The kindeditor plug-in is used in php, and no content can be obtained from js ,. In this case, I encapsulate kindeditor into the smarty plug-in and use <{html_kindeditor}> to introduce it on another page.
Plug-in: function.html _ kindeditor. php
Var editor1; KindEditor. ready (function (K) {var editor1 = K. create (\ 'textarea [name = "content1"] \ ', {cssPath: \'/wxy/view/plugins/code/prettify.css \ ', uploadJson: \ '/wxy/view/upload_json.php \', fileManagerJson: \ '/wxy/view/php/file_manager_json.php \', allowFileManager: true}); prettyPrint ();}); script '; Return $ editor1 ;}
Another template to be introduced is a.html.
// Jquery code $ ("# subContents "). click (function () {alert ("string length:" + ($ ("# content1 "). val ()). length + "type:" + (typeof $ ("# content1 "). val ()));});
After the input string is entered, the length is 0, which is determined to be a string.
Reply to discussion (solution)
allowFileManager : true,afterBlur:function(){ this.sync(); }
Try...
allowFileManager : true,afterBlur:function(){ this.sync(); }
Try...
Actually, the problem is solved. Haha.