vue-editify 0.1.35 → 0.1.36
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 +1 -1
- package/lib/editify.es.js +3 -3
- package/lib/editify.umd.js +1 -1
- package/lib/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -1
package/examples/App.vue
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<script setup lang="ts">
|
7
7
|
import { h, ref } from 'vue'
|
8
8
|
import { AlexElement, MenuConfigType, Editify, attachment, PluginType } from '../src/index'
|
9
|
-
const val = ref<string>('<p><
|
9
|
+
const val = ref<string>('<p><br></p>')
|
10
10
|
const editify = ref<InstanceType<typeof Editify> | null>(null)
|
11
11
|
const menuConfig = ref<MenuConfigType>({
|
12
12
|
use: true,
|
package/lib/editify.es.js
CHANGED
@@ -3931,7 +3931,7 @@ class AlexEditor {
|
|
3931
3931
|
if (parsedom == "style" || parsedom == "meta" || parsedom == "script" || parsedom == "link") {
|
3932
3932
|
return new AlexElement("text", null, null, null, null);
|
3933
3933
|
}
|
3934
|
-
if (parsedom == AlexElement.TEXT_NODE && Array.from(node.childNodes).every((childNode) => childNode.nodeType == 3)) {
|
3934
|
+
if (parsedom == AlexElement.TEXT_NODE && node.childNodes.length && Array.from(node.childNodes).every((childNode) => childNode.nodeType == 3)) {
|
3935
3935
|
return new AlexElement("text", null, marks, styles, node.textContent);
|
3936
3936
|
}
|
3937
3937
|
const block = blockParse.find((item) => item.parsedom == parsedom);
|
@@ -4520,7 +4520,7 @@ class AlexEditor {
|
|
4520
4520
|
event$1.off(this.$el, "beforeinput.alex_editor compositionstart.alex_editor compositionupdate.alex_editor compositionend.alex_editor keydown.alex_editor cut.alex_editor paste.alex_editor copy.alex_editor dragstart.alex_editor drop.alex_editor focus.alex_editor blur.alex_editor");
|
4521
4521
|
}
|
4522
4522
|
}
|
4523
|
-
const version$2 = "1.3.
|
4523
|
+
const version$2 = "1.3.36";
|
4524
4524
|
console.log(`%c alex-editor %c v${version$2} `, "padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #606060; font-weight: bold;", "padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #42c02e; font-weight: bold;");
|
4525
4525
|
const number = {
|
4526
4526
|
/**
|
@@ -26272,7 +26272,7 @@ const attachment = (options) => {
|
|
26272
26272
|
const install = (app) => {
|
26273
26273
|
app.component(Editify.name, Editify);
|
26274
26274
|
};
|
26275
|
-
const version = "0.1.
|
26275
|
+
const version = "0.1.36";
|
26276
26276
|
console.log(`%c vue-editify %c v${version} `, "padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #606060; font-weight: bold;", "padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #42c02e; font-weight: bold;");
|
26277
26277
|
export {
|
26278
26278
|
AlexElement,
|