<TD colspan= "6" >
<textarea class= "Content" name= "content" style= "height:250px;width:690px" >@ (model.content) </textarea> Or
@Html. textareafor (it = it.content, +, new {style= "margin:8px 0 0 0;width:719px;"})
</td>
JS Display style
$ (function () {
The implementation of the style of the body text box
Kindeditor.ready (function (K) {
K.create (' textarea[class= ' content "] ', {
Allowimageupload:true,
Csspath: ' @Url. Content ("~/kindeditor/plugins/code/prettify.css") ',
Uploadjson: ' @Url. Content ("~/kindeditor/upload") ',
Filemanagerjson: ' @Url. Content ("~/kindeditor/browse") ',
Allowfilemanager:true,
Aftercreate:function () {This.sync ();},
Afterblur:function () {
This.sync ();
}
});
});
Input dangerous characters may be quoted when special characters are entered
This is to add [ValidateInput (false)] to cancel the illegal authentication before conntrator in the edit
MVc text box design style