@ones-editor/editor 0.0.9-beta.5 → 0.0.9-beta.6
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/dist/index.js
CHANGED
|
@@ -42217,7 +42217,7 @@ var __publicField = (obj, key, value) => {
|
|
|
42217
42217
|
}
|
|
42218
42218
|
function getListMarker(listData) {
|
|
42219
42219
|
var _a, _b;
|
|
42220
|
-
if (listData.checkbox
|
|
42220
|
+
if (listData.checkbox) {
|
|
42221
42221
|
return "";
|
|
42222
42222
|
}
|
|
42223
42223
|
const level = (_a = listData.level) != null ? _a : 1;
|
|
@@ -42343,7 +42343,7 @@ var __publicField = (obj, key, value) => {
|
|
|
42343
42343
|
}
|
|
42344
42344
|
function updateMarker(marker, listData) {
|
|
42345
42345
|
const type = getListType(listData);
|
|
42346
|
-
if (type === "text-only") {
|
|
42346
|
+
if (type === "text-only" && !listData.level) {
|
|
42347
42347
|
return;
|
|
42348
42348
|
}
|
|
42349
42349
|
if (type === "checked") {
|
|
@@ -49290,7 +49290,7 @@ ${codeText}
|
|
|
49290
49290
|
i18n$1.mergeLang(langs$1);
|
|
49291
49291
|
function isEmptyTextBlockWithoutCompositionText(editor, block) {
|
|
49292
49292
|
const titleBlockData = editorGetBlockData(editor, block);
|
|
49293
|
-
if (titleBlockData.text && getTextLength(titleBlockData.text) === 0) {
|
|
49293
|
+
if (isTextKindBlock(editor, block) && titleBlockData.text && getTextLength(titleBlockData.text) === 0) {
|
|
49294
49294
|
if (!block.querySelector(".inputting-insertion")) {
|
|
49295
49295
|
return true;
|
|
49296
49296
|
}
|