Home > front end >  Kindeditor rich text from the background value is how to assign a value to a rich text
Kindeditor rich text from the background value is how to assign a value to a rich text

Time:10-05


Zxl_Dyyoo
Bbs1
Junction post rate 0%
& lt; The script type="text/javascript" & gt;
Var editor;
KindEditor. Ready (function (K) {//editor to add to the document
The editor=final reate (' # content1 '{
CssPath: '${APP_PATH}/pages/static/kindeditor - 4.1.10/plugins/code/prettify. CSS',//the specified editor iframe document CSS file, is used to set the style of the visual area,
UploadJson: "${APP_PATH}/pages/static/kindeditor 4.1.10/JSP/upload_json JSP",//specified upload a file server,
FileManagerJson: "${APP_PATH}/pages/static/kindeditor 4.1.10/JSP/file_manager_json JSP",//specified browse remote images server-side programs,
AllowFileManager: true,//true display browse button remote server; Default value: false
AllowImageUpload: true,
//the contents of the rich text editor synchronization to form serialization of
AfterBlur: function () {enclosing the sync (); },
});
Var editor=final reate (' # content1 'options);
PrettyPrint ();
});
& lt;/script>

& lt; MessageContent textarea id="content1" name="" style=" width: 700 px; Height: 300 px;"> & lt;/textarea>

CodePudding user response:

These have instructions on the official document API,
http://kindeditor.net/docs/editor.html#k-html-expr-val
  • Related