@ones-editor/editor 2.1.7-beta.10 → 2.1.7-beta.11
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
|
@@ -41270,7 +41270,7 @@ ${codeText}
|
|
|
41270
41270
|
return [color === null ? null : parseInt(color, 10), backgroundColor === null ? null : parseInt(backgroundColor, 10)];
|
|
41271
41271
|
}
|
|
41272
41272
|
const textColorItem = "";
|
|
41273
|
-
class TextColorItem
|
|
41273
|
+
class TextColorItem extends tinyTypedEmitter.TypedEmitter {
|
|
41274
41274
|
constructor(editor, storageName = "color-item") {
|
|
41275
41275
|
super();
|
|
41276
41276
|
__publicField(this, "id", "text-color-item");
|
|
@@ -59003,7 +59003,7 @@ $$${mathData.mathjaxText}$$
|
|
|
59003
59003
|
});
|
|
59004
59004
|
__publicField(this, "executeInsertCommand", () => false);
|
|
59005
59005
|
this.editor = editor;
|
|
59006
|
-
this.colorItem = new TextColorItem
|
|
59006
|
+
this.colorItem = new TextColorItem(editor);
|
|
59007
59007
|
this.colorItem.addListener("onClick", this.handleChangeColor);
|
|
59008
59008
|
}
|
|
59009
59009
|
get blockAttributesHandler() {
|
|
@@ -87214,7 +87214,7 @@ ${data2.flowchartText}
|
|
|
87214
87214
|
editorAddComment(editor);
|
|
87215
87215
|
}
|
|
87216
87216
|
}
|
|
87217
|
-
class
|
|
87217
|
+
class ColorItem extends TextColorItem {
|
|
87218
87218
|
constructor(editor) {
|
|
87219
87219
|
super(editor);
|
|
87220
87220
|
__publicField(this, "childrenPlacement", "bottom-start");
|
|
@@ -87276,7 +87276,7 @@ ${data2.flowchartText}
|
|
|
87276
87276
|
new FontItalicItem(),
|
|
87277
87277
|
new FontUnderlineItem(),
|
|
87278
87278
|
new FontStrikethroughItem(),
|
|
87279
|
-
new
|
|
87279
|
+
new ColorItem(editor),
|
|
87280
87280
|
new InlineCodeItem(),
|
|
87281
87281
|
new SuperscriptItem(),
|
|
87282
87282
|
new SubscriptItem(),
|
|
@@ -87611,7 +87611,7 @@ ${data2.flowchartText}
|
|
|
87611
87611
|
}
|
|
87612
87612
|
}
|
|
87613
87613
|
});
|
|
87614
|
-
editor.version = "2.1.7-beta.
|
|
87614
|
+
editor.version = "2.1.7-beta.11";
|
|
87615
87615
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
87616
87616
|
window.setReauthFail = (fail) => {
|
|
87617
87617
|
window.isReauthError = fail;
|
|
@@ -87730,7 +87730,7 @@ ${data2.flowchartText}
|
|
|
87730
87730
|
}
|
|
87731
87731
|
}
|
|
87732
87732
|
OnesEditorToolbar.register(editor);
|
|
87733
|
-
editor.version = "2.1.7-beta.
|
|
87733
|
+
editor.version = "2.1.7-beta.11";
|
|
87734
87734
|
return editor;
|
|
87735
87735
|
}
|
|
87736
87736
|
async function showDocVersions(editor, options, serverUrl) {
|
|
@@ -133529,6 +133529,7 @@ ${data2.flowchartText}
|
|
|
133529
133529
|
exports2.CodeBlock = CodeBlock;
|
|
133530
133530
|
exports2.CodeLineBlock = CodeLineBlock;
|
|
133531
133531
|
exports2.CodeTextDecorator = CodeTextDecorator;
|
|
133532
|
+
exports2.ColorItem = ColorItem;
|
|
133532
133533
|
exports2.ColorStyleProvider = ColorStyleProvider;
|
|
133533
133534
|
exports2.CommentItem = CommentItem;
|
|
133534
133535
|
exports2.CommentsCommandProvider = CommentsCommandProvider;
|
|
@@ -133638,7 +133639,7 @@ ${data2.flowchartText}
|
|
|
133638
133639
|
exports2.TableShortcuts = TableShortcuts;
|
|
133639
133640
|
exports2.TextBlock = TextBlock;
|
|
133640
133641
|
exports2.TextBox = TextBox;
|
|
133641
|
-
exports2.TextColorItem = TextColorItem
|
|
133642
|
+
exports2.TextColorItem = TextColorItem;
|
|
133642
133643
|
exports2.TextCommandProvider = TextCommandProvider;
|
|
133643
133644
|
exports2.TextScriptProvider = TextScriptProvider;
|
|
133644
133645
|
exports2.TextStyleShortcuts = TextStyleShortcuts;
|