@ones-editor/editor 3.0.5 → 3.0.7
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/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +16 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -52257,6 +52257,9 @@ ${codeText}
|
|
|
52257
52257
|
}
|
|
52258
52258
|
function convertToList(editor, srcBlock, options) {
|
|
52259
52259
|
var _a, _b, _c;
|
|
52260
|
+
if (isTitleBlock$2(srcBlock)) {
|
|
52261
|
+
return null;
|
|
52262
|
+
}
|
|
52260
52263
|
const listData = (_a = options.data) != null ? _a : {};
|
|
52261
52264
|
let level = 1;
|
|
52262
52265
|
if (isListBlock(srcBlock)) {
|
|
@@ -67283,6 +67286,10 @@ ${codeText}
|
|
|
67283
67286
|
}
|
|
67284
67287
|
class MarkdownInputHandler {
|
|
67285
67288
|
handleAfterInsertText(editor, containerId, blockIndex, offset, text2) {
|
|
67289
|
+
const block = editor.getBlockByIndex(containerId, blockIndex);
|
|
67290
|
+
if (isTitleBlock$2(block)) {
|
|
67291
|
+
return false;
|
|
67292
|
+
}
|
|
67286
67293
|
if (text2 === " ") {
|
|
67287
67294
|
if (converterIntercept(editor, containerId)) {
|
|
67288
67295
|
return false;
|
|
@@ -67302,6 +67309,10 @@ ${codeText}
|
|
|
67302
67309
|
return false;
|
|
67303
67310
|
}
|
|
67304
67311
|
const { containerId, blockIndex, offset } = editor.getTextPosition();
|
|
67312
|
+
const block = editor.getBlockByIndex(containerId, blockIndex);
|
|
67313
|
+
if (isTitleBlock$2(block)) {
|
|
67314
|
+
return false;
|
|
67315
|
+
}
|
|
67305
67316
|
const isTextBlock = isTextKindBlock(editor, editor.getBlockByIndex(containerId, blockIndex));
|
|
67306
67317
|
if (isTextBlock) {
|
|
67307
67318
|
if (isMatchShortcut(event, "Enter")) {
|
|
@@ -69318,6 +69329,9 @@ ${codeText}
|
|
|
69318
69329
|
});
|
|
69319
69330
|
function convertToImage(editor, containerId, blockIndex, offset) {
|
|
69320
69331
|
const block = editor.getBlockByIndex(containerId, blockIndex);
|
|
69332
|
+
if (isTitleBlock$2(block)) {
|
|
69333
|
+
return false;
|
|
69334
|
+
}
|
|
69321
69335
|
const blockText = editor.getBlockText(block);
|
|
69322
69336
|
const { left: preText } = splitText(blockText, offset);
|
|
69323
69337
|
const prePlainText = toPlainText(preText);
|
|
@@ -96740,7 +96754,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
96740
96754
|
}
|
|
96741
96755
|
}
|
|
96742
96756
|
});
|
|
96743
|
-
editor.version = "3.0.
|
|
96757
|
+
editor.version = "3.0.7";
|
|
96744
96758
|
return editor;
|
|
96745
96759
|
}
|
|
96746
96760
|
function isDoc(doc2) {
|
|
@@ -96874,7 +96888,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
96874
96888
|
OnesEditorDropTarget.register(editor);
|
|
96875
96889
|
OnesEditorTocProvider.register(editor);
|
|
96876
96890
|
OnesEditorExclusiveBlock.register(editor);
|
|
96877
|
-
editor.version = "3.0.
|
|
96891
|
+
editor.version = "3.0.7";
|
|
96878
96892
|
return editor;
|
|
96879
96893
|
}
|
|
96880
96894
|
async function showDocVersions(editor, options, serverUrl) {
|