|
@@ -89,14 +89,19 @@ export default {
|
|
|
//内容改变事件
|
|
|
contentChanged: function () {
|
|
|
that.lastEditRange = getSelection().getRangeAt(0) || 0;
|
|
|
- that.$emit('textChange', that.html)
|
|
|
+
|
|
|
+ // that.$emit('textChange', that.html)
|
|
|
+ that.sendHtml()
|
|
|
},
|
|
|
},
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
-
|
|
|
+ sendHtml(){
|
|
|
+ const str=this.html.replace(/<p data-f-id=\"pbf\".*?<\/p>/g, "")
|
|
|
+ this.$emit('textChange', str)
|
|
|
+ }
|
|
|
},
|
|
|
components:{}
|
|
|
}
|