@ones-editor/editor 2.6.1-beta.2 → 2.6.1-beta.4
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
|
@@ -44,7 +44,6 @@ div.editor-root {
|
|
|
44
44
|
box-sizing: border-box;
|
|
45
45
|
min-height: 100%;
|
|
46
46
|
width: 100%;
|
|
47
|
-
z-index: 1;
|
|
48
47
|
}
|
|
49
48
|
div.editor-root.readonly div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] span.text.link {
|
|
50
49
|
cursor: pointer;
|
|
@@ -61523,7 +61522,8 @@ $$${mathData.mathjaxText}$$
|
|
|
61523
61522
|
"text/style-code": "code",
|
|
61524
61523
|
"text/style-sub": "subscript",
|
|
61525
61524
|
"text/style-super": "superscript",
|
|
61526
|
-
link: "link"
|
|
61525
|
+
link: "link",
|
|
61526
|
+
"insert-link": "link"
|
|
61527
61527
|
};
|
|
61528
61528
|
function getTextCommands(editor, blockCommands) {
|
|
61529
61529
|
const styleCommandsSet = new Set(Object.keys(TextCommands));
|
|
@@ -61540,7 +61540,7 @@ $$${mathData.mathjaxText}$$
|
|
|
61540
61540
|
const range = editor.selection.range;
|
|
61541
61541
|
const allCommands = editor.editorCommandProviders.getCommands(range);
|
|
61542
61542
|
const textCommands = getTextCommands(editor, allCommands);
|
|
61543
|
-
const command = textCommands.find((c) => c.id === `text/${style2}` || c.id === "link");
|
|
61543
|
+
const command = textCommands.find((c) => c.id === `text/${style2}` || c.id === "link" || c.id === "insert-link");
|
|
61544
61544
|
if (!command) {
|
|
61545
61545
|
return false;
|
|
61546
61546
|
}
|
|
@@ -61579,7 +61579,7 @@ $$${mathData.mathjaxText}$$
|
|
|
61579
61579
|
"CtrlOrCmd+I": (editor) => executeShortcut$1(editor, "style-italic"),
|
|
61580
61580
|
"CtrlOrCmd+U": (editor) => executeShortcut$1(editor, "style-underline"),
|
|
61581
61581
|
"CtrlOrCmd+D": (editor) => executeShortcut$1(editor, "style-strikethrough"),
|
|
61582
|
-
"CtrlOrCmd+K": (editor) => executeShortcut$1(editor, "link"),
|
|
61582
|
+
"CtrlOrCmd+K": (editor) => executeShortcut$1(editor, "insert-link"),
|
|
61583
61583
|
...headingShortcut()
|
|
61584
61584
|
};
|
|
61585
61585
|
function executeShortcut(editor) {
|
|
@@ -92432,7 +92432,7 @@ ${data2.plantumlText}
|
|
|
92432
92432
|
}
|
|
92433
92433
|
}
|
|
92434
92434
|
});
|
|
92435
|
-
editor.version = "2.6.1-beta.
|
|
92435
|
+
editor.version = "2.6.1-beta.4";
|
|
92436
92436
|
return editor;
|
|
92437
92437
|
}
|
|
92438
92438
|
function isDoc(doc2) {
|
|
@@ -92545,7 +92545,7 @@ ${data2.plantumlText}
|
|
|
92545
92545
|
}
|
|
92546
92546
|
});
|
|
92547
92547
|
OnesEditorToolbar.register(editor);
|
|
92548
|
-
editor.version = "2.6.1-beta.
|
|
92548
|
+
editor.version = "2.6.1-beta.4";
|
|
92549
92549
|
return editor;
|
|
92550
92550
|
}
|
|
92551
92551
|
async function showDocVersions(editor, options, serverUrl) {
|