@ones-editor/editor 3.0.1-beta.12 → 3.0.1-beta.13
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
|
@@ -78869,14 +78869,13 @@ ${docStr}
|
|
|
78869
78869
|
insertIndex += 1;
|
|
78870
78870
|
} else {
|
|
78871
78871
|
editor.clearSelectedContents();
|
|
78872
|
-
const { blockId } = editor.selection.range.start;
|
|
78872
|
+
const { blockId, offset } = editor.selection.range.start;
|
|
78873
78873
|
const block = editor.getBlockById(blockId);
|
|
78874
78874
|
insertIndex = getBlockIndex(block);
|
|
78875
78875
|
container = getParentContainer(block);
|
|
78876
|
-
if (!isEmptyTextBlock(editor, block)) {
|
|
78876
|
+
if (!isEmptyTextBlock(editor, block) && offset > 0) {
|
|
78877
78877
|
insertIndex += 1;
|
|
78878
|
-
}
|
|
78879
|
-
if (isRootContainer(container) && insertIndex === 0) {
|
|
78878
|
+
} else if (isRootContainer(container) && insertIndex === 0 && isTitleBlock$2(block)) {
|
|
78880
78879
|
insertIndex += 1;
|
|
78881
78880
|
}
|
|
78882
78881
|
}
|
|
@@ -95964,7 +95963,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
95964
95963
|
}
|
|
95965
95964
|
}
|
|
95966
95965
|
});
|
|
95967
|
-
editor.version = "3.0.1-beta.
|
|
95966
|
+
editor.version = "3.0.1-beta.13";
|
|
95968
95967
|
return editor;
|
|
95969
95968
|
}
|
|
95970
95969
|
function isDoc(doc2) {
|
|
@@ -96098,7 +96097,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
96098
96097
|
OnesEditorDropTarget.register(editor);
|
|
96099
96098
|
OnesEditorTocProvider.register(editor);
|
|
96100
96099
|
OnesEditorExclusiveBlock.register(editor);
|
|
96101
|
-
editor.version = "3.0.1-beta.
|
|
96100
|
+
editor.version = "3.0.1-beta.13";
|
|
96102
96101
|
return editor;
|
|
96103
96102
|
}
|
|
96104
96103
|
async function showDocVersions(editor, options, serverUrl) {
|