|
|
|
@ -289,8 +289,8 @@ class JudquestionEditor extends Component{
|
|
|
|
|
} else {
|
|
|
|
|
// 提交到后台的内容需要处理一下;
|
|
|
|
|
var texts="";
|
|
|
|
|
if(_text.length>=101){
|
|
|
|
|
var result = _text.substring(0,100);
|
|
|
|
|
if(_text.length>=1001){
|
|
|
|
|
var result = _text.substring(0,1000);
|
|
|
|
|
texts={"ops":[{"insert":result}]};
|
|
|
|
|
texts=JSON.stringify(texts);
|
|
|
|
|
}else {
|
|
|
|
@ -313,8 +313,8 @@ class JudquestionEditor extends Component{
|
|
|
|
|
} else {
|
|
|
|
|
// 提交到后台的内容需要处理一下;
|
|
|
|
|
var texts="";
|
|
|
|
|
if(_text.length>=101){
|
|
|
|
|
var result = _text.substring(0,100);
|
|
|
|
|
if(_text.length>=1001){
|
|
|
|
|
var result = _text.substring(0,1000);
|
|
|
|
|
texts={"ops":[{"insert":result}]};
|
|
|
|
|
texts=JSON.stringify(texts);
|
|
|
|
|
}else {
|
|
|
|
|