@ones-editor/editor 3.0.6 → 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 +13 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -67286,6 +67286,10 @@ ${codeText}
|
|
|
67286
67286
|
}
|
|
67287
67287
|
class MarkdownInputHandler {
|
|
67288
67288
|
handleAfterInsertText(editor, containerId, blockIndex, offset, text2) {
|
|
67289
|
+
const block = editor.getBlockByIndex(containerId, blockIndex);
|
|
67290
|
+
if (isTitleBlock$2(block)) {
|
|
67291
|
+
return false;
|
|
67292
|
+
}
|
|
67289
67293
|
if (text2 === " ") {
|
|
67290
67294
|
if (converterIntercept(editor, containerId)) {
|
|
67291
67295
|
return false;
|
|
@@ -67305,6 +67309,10 @@ ${codeText}
|
|
|
67305
67309
|
return false;
|
|
67306
67310
|
}
|
|
67307
67311
|
const { containerId, blockIndex, offset } = editor.getTextPosition();
|
|
67312
|
+
const block = editor.getBlockByIndex(containerId, blockIndex);
|
|
67313
|
+
if (isTitleBlock$2(block)) {
|
|
67314
|
+
return false;
|
|
67315
|
+
}
|
|
67308
67316
|
const isTextBlock = isTextKindBlock(editor, editor.getBlockByIndex(containerId, blockIndex));
|
|
67309
67317
|
if (isTextBlock) {
|
|
67310
67318
|
if (isMatchShortcut(event, "Enter")) {
|
|
@@ -69321,6 +69329,9 @@ ${codeText}
|
|
|
69321
69329
|
});
|
|
69322
69330
|
function convertToImage(editor, containerId, blockIndex, offset) {
|
|
69323
69331
|
const block = editor.getBlockByIndex(containerId, blockIndex);
|
|
69332
|
+
if (isTitleBlock$2(block)) {
|
|
69333
|
+
return false;
|
|
69334
|
+
}
|
|
69324
69335
|
const blockText = editor.getBlockText(block);
|
|
69325
69336
|
const { left: preText } = splitText(blockText, offset);
|
|
69326
69337
|
const prePlainText = toPlainText(preText);
|
|
@@ -96743,7 +96754,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
96743
96754
|
}
|
|
96744
96755
|
}
|
|
96745
96756
|
});
|
|
96746
|
-
editor.version = "3.0.
|
|
96757
|
+
editor.version = "3.0.7";
|
|
96747
96758
|
return editor;
|
|
96748
96759
|
}
|
|
96749
96760
|
function isDoc(doc2) {
|
|
@@ -96877,7 +96888,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
96877
96888
|
OnesEditorDropTarget.register(editor);
|
|
96878
96889
|
OnesEditorTocProvider.register(editor);
|
|
96879
96890
|
OnesEditorExclusiveBlock.register(editor);
|
|
96880
|
-
editor.version = "3.0.
|
|
96891
|
+
editor.version = "3.0.7";
|
|
96881
96892
|
return editor;
|
|
96882
96893
|
}
|
|
96883
96894
|
async function showDocVersions(editor, options, serverUrl) {
|