|
|
@@ -96,7 +96,7 @@ export default {
|
|
|
},
|
|
|
wordlimitNum: {
|
|
|
type: [Number, Boolean],
|
|
|
- default: 1000,
|
|
|
+ default: 1000000,
|
|
|
},
|
|
|
isFill: {
|
|
|
type: Boolean,
|
|
|
@@ -289,6 +289,7 @@ export default {
|
|
|
let content = args.content;
|
|
|
// 使用正则表达式去掉 style 中的 background 属性
|
|
|
content = content.replace(/background(-color)?:[^;]+;/g, '');
|
|
|
+ content = content.replace(/\t/g, ' '); // 将制表符替换为4个空格
|
|
|
args.content = content;
|
|
|
},
|
|
|
// 指定在 WebKit 中粘贴时要保留的样式
|
|
|
@@ -885,7 +886,6 @@ export default {
|
|
|
},
|
|
|
// 删除span里面的文字之后,会出现空 span 标签残留,需处理掉
|
|
|
handleEmptySpan(editor) {
|
|
|
- let that = this;
|
|
|
const selection = editor.selection;
|
|
|
const selectedNode = selection.getNode();
|
|
|
// 如果选中的是注释span内的内容
|
|
|
@@ -900,7 +900,7 @@ export default {
|
|
|
span.parentNode.replaceChild(document.createTextNode(''), span);
|
|
|
|
|
|
// 从存储中移除注释
|
|
|
- that.$emit('selectContentSetMemo', null, annotationId);
|
|
|
+ this.$emit('selectContentSetMemo', null, annotationId);
|
|
|
}
|
|
|
}
|
|
|
},
|