vue-editify 0.0.46 → 0.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/examples/App.vue +3 -13
- package/lib/editify.es.js +377 -353
- package/lib/editify.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +2 -2
- package/src/Editify.vue +151 -143
- package/src/components/bussiness/Menu.vue +14 -14
- package/src/components/bussiness/Toolbar.vue +46 -48
- package/src/index.js +1 -1
package/examples/App.vue
CHANGED
@@ -11,7 +11,7 @@ export default {
|
|
11
11
|
name: 'App',
|
12
12
|
data() {
|
13
13
|
return {
|
14
|
-
value:
|
14
|
+
value: ``,
|
15
15
|
menuConfig: {
|
16
16
|
mode: 'inner',
|
17
17
|
sequence: {
|
@@ -86,7 +86,7 @@ export default {
|
|
86
86
|
}
|
87
87
|
],
|
88
88
|
onOperate: function (name, val, instance) {
|
89
|
-
|
89
|
+
this.insertHtml('<p>我是插入的HTML</p>', true, false)
|
90
90
|
},
|
91
91
|
default: () => h('span', {}, '自定义菜单')
|
92
92
|
}
|
@@ -95,17 +95,7 @@ export default {
|
|
95
95
|
btn: null
|
96
96
|
}
|
97
97
|
},
|
98
|
-
mounted() {
|
99
|
-
// setTimeout(() => {
|
100
|
-
// this.value = '<p><br></p>'
|
101
|
-
// }, 3000)
|
102
|
-
setTimeout(() => {
|
103
|
-
// const el = this.$refs.editify.editor.getElementByKey(4)
|
104
|
-
// this.$refs.editify.editor.range.anchor.moveToStart(el)
|
105
|
-
// this.$refs.editify.editor.range.focus.moveToStart(el)
|
106
|
-
// this.$refs.editify.editor.rangeRender()
|
107
|
-
}, 100)
|
108
|
-
},
|
98
|
+
mounted() {},
|
109
99
|
methods: {
|
110
100
|
afterRender() {
|
111
101
|
this.$refs.editify.$el.querySelectorAll('[data-zip]').forEach(el => {
|