1)比如在第一行输入 fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 时到头后会换行到第一行首部。
2)比如在中间某行输入 fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 时到头后会换行到上一行首部。
<title>KindEditor</title>
<style>
html, body, button
{
padding: 0px;
margin: 0px;
}
form {
margin: 0px;
padding: 0px;
}
textarea {
display: block;
}
</style>
<script charset="utf-8" src="../kindeditor-min.js"></script>
<script charset="utf-8" src="../lang/zh_CN.js"></script>
<!--引入桥文件-->
<script charset="utf-8" src="../TGJSBridge.js"></script>
<!--引入桥文件-->
<script>
KindEditor.ready(function(K) {
//初始化KindEditor
editor = K.create('textarea[name="content"]', {
resizeType : 1,
allowPreviewEmoticons : false,
allowImageUpload : false,
width:window.screen.width-22,
height:700,
minHeight:700,
resizeType:0,
items : []
});
});
function show()
{
jsBridge.postNotification('GetWebHTMLEditorContent',{HTMLContent:editor.html()});
}
//注册Test 消息
jsBridge.bind('GetWebHTMLEditorContent', function(object){
show();
});
jsBridge.bind('SetWebHTMLEditorContent',function(object){
editor.html(object.HTMLContent);
});
</script>
</head>
<body style="word-break:break-all; background-color: transparent">
<form>
<div style=" left: 0px; position: absolute; top: -6px; ">