@ones-editor/editor 2.6.1-beta.2 → 2.6.1-beta.3
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
|
@@ -61523,7 +61523,8 @@ $$${mathData.mathjaxText}$$
|
|
|
61523
61523
|
"text/style-code": "code",
|
|
61524
61524
|
"text/style-sub": "subscript",
|
|
61525
61525
|
"text/style-super": "superscript",
|
|
61526
|
-
link: "link"
|
|
61526
|
+
link: "link",
|
|
61527
|
+
"insert-link": "link"
|
|
61527
61528
|
};
|
|
61528
61529
|
function getTextCommands(editor, blockCommands) {
|
|
61529
61530
|
const styleCommandsSet = new Set(Object.keys(TextCommands));
|
|
@@ -61540,7 +61541,7 @@ $$${mathData.mathjaxText}$$
|
|
|
61540
61541
|
const range = editor.selection.range;
|
|
61541
61542
|
const allCommands = editor.editorCommandProviders.getCommands(range);
|
|
61542
61543
|
const textCommands = getTextCommands(editor, allCommands);
|
|
61543
|
-
const command = textCommands.find((c) => c.id === `text/${style2}` || c.id === "link");
|
|
61544
|
+
const command = textCommands.find((c) => c.id === `text/${style2}` || c.id === "link" || c.id === "insert-link");
|
|
61544
61545
|
if (!command) {
|
|
61545
61546
|
return false;
|
|
61546
61547
|
}
|
|
@@ -61579,7 +61580,7 @@ $$${mathData.mathjaxText}$$
|
|
|
61579
61580
|
"CtrlOrCmd+I": (editor) => executeShortcut$1(editor, "style-italic"),
|
|
61580
61581
|
"CtrlOrCmd+U": (editor) => executeShortcut$1(editor, "style-underline"),
|
|
61581
61582
|
"CtrlOrCmd+D": (editor) => executeShortcut$1(editor, "style-strikethrough"),
|
|
61582
|
-
"CtrlOrCmd+K": (editor) => executeShortcut$1(editor, "link"),
|
|
61583
|
+
"CtrlOrCmd+K": (editor) => executeShortcut$1(editor, "insert-link"),
|
|
61583
61584
|
...headingShortcut()
|
|
61584
61585
|
};
|
|
61585
61586
|
function executeShortcut(editor) {
|
|
@@ -92432,7 +92433,7 @@ ${data2.plantumlText}
|
|
|
92432
92433
|
}
|
|
92433
92434
|
}
|
|
92434
92435
|
});
|
|
92435
|
-
editor.version = "2.6.1-beta.
|
|
92436
|
+
editor.version = "2.6.1-beta.3";
|
|
92436
92437
|
return editor;
|
|
92437
92438
|
}
|
|
92438
92439
|
function isDoc(doc2) {
|
|
@@ -92545,7 +92546,7 @@ ${data2.plantumlText}
|
|
|
92545
92546
|
}
|
|
92546
92547
|
});
|
|
92547
92548
|
OnesEditorToolbar.register(editor);
|
|
92548
|
-
editor.version = "2.6.1-beta.
|
|
92549
|
+
editor.version = "2.6.1-beta.3";
|
|
92549
92550
|
return editor;
|
|
92550
92551
|
}
|
|
92551
92552
|
async function showDocVersions(editor, options, serverUrl) {
|