vue-editify 0.0.16 → 0.0.18
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 +6 -2
- package/lib/editify.es.js +510 -288
- package/lib/editify.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +3 -3
- package/src/Editify.vue +192 -95
- package/src/core/index.js +3 -0
- package/src/index.js +1 -1
package/examples/App.vue
CHANGED
@@ -9,7 +9,7 @@ export default {
|
|
9
9
|
name: 'App',
|
10
10
|
data() {
|
11
11
|
return {
|
12
|
-
value: '<p
|
12
|
+
value: '<p><span>这是一个基于 </span><span data-editify-code="true">Vue3 + alex-editor</span><span> 构建的一套</span><span style="font-weight: bold;">精美UI样式</span><span>的</span><span style="font-weight: bold;">开箱即用</span><span>的</span><span style="color: #ec1a0a;">富文本编辑器</span></p>',
|
13
13
|
menuConfig: {
|
14
14
|
mode: 'fixed',
|
15
15
|
sequence: {
|
@@ -53,7 +53,11 @@ export default {
|
|
53
53
|
btn: null
|
54
54
|
}
|
55
55
|
},
|
56
|
-
mounted() {
|
56
|
+
mounted() {
|
57
|
+
// setTimeout(() => {
|
58
|
+
// this.value = '<p><br></p>'
|
59
|
+
// }, 3000)
|
60
|
+
},
|
57
61
|
methods: {
|
58
62
|
change() {
|
59
63
|
this.$refs.editify.isSourceView = !this.$refs.editify.isSourceView
|