@37signals/lexxy 0.9.13-beta → 0.9.14-beta
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/README.md +0 -3
- package/dist/lexxy.esm.js +14 -12
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/lexxy.esm.js
CHANGED
|
@@ -619,14 +619,14 @@ class LexicalToolbarElement extends HTMLElement {
|
|
|
619
619
|
|
|
620
620
|
this.#setButtonPressed("bold", isBold);
|
|
621
621
|
this.#setButtonPressed("italic", isItalic);
|
|
622
|
+
this.#setButtonPressed("strikethrough", isStrikethrough);
|
|
623
|
+
this.#setButtonPressed("underline", isUnderline);
|
|
622
624
|
|
|
623
|
-
this.#setButtonPressed("format", isInHeading
|
|
625
|
+
this.#setButtonPressed("format", isInHeading);
|
|
624
626
|
this.#setButtonPressed("paragraph", !isInHeading);
|
|
625
627
|
this.#setButtonPressed("heading-large", headingTag === "h2");
|
|
626
628
|
this.#setButtonPressed("heading-medium", headingTag === "h3");
|
|
627
629
|
this.#setButtonPressed("heading-small", headingTag === "h4");
|
|
628
|
-
this.#setButtonPressed("strikethrough", isStrikethrough);
|
|
629
|
-
this.#setButtonPressed("underline", isUnderline);
|
|
630
630
|
|
|
631
631
|
this.#setButtonPressed("lists", isInList);
|
|
632
632
|
this.#setButtonPressed("unordered-list", isInList && listType === "bullet");
|
|
@@ -789,6 +789,14 @@ class LexicalToolbarElement extends HTMLElement {
|
|
|
789
789
|
${ToolbarIcons.italic}
|
|
790
790
|
</button>
|
|
791
791
|
|
|
792
|
+
<button class="lexxy-editor__toolbar-button" type="button" name="strikethrough" data-command="strikethrough" title="Strikethrough">
|
|
793
|
+
${ToolbarIcons.strikethrough}
|
|
794
|
+
</button>
|
|
795
|
+
|
|
796
|
+
<button class="lexxy-editor__toolbar-button lexxy-editor__toolbar-group-end" type="button" name="underline" data-command="underline" title="Underline">
|
|
797
|
+
${ToolbarIcons.underline}
|
|
798
|
+
</button>
|
|
799
|
+
|
|
792
800
|
<lexxy-toolbar-dropdown class="lexxy-editor__toolbar-dropdown">
|
|
793
801
|
<button data-dropdown-trigger class="lexxy-editor__toolbar-button lexxy-editor__toolbar-button--chevron" type="button" name="format" title="Text formatting" aria-haspopup="menu" aria-expanded="false">
|
|
794
802
|
${ToolbarIcons.heading}
|
|
@@ -807,13 +815,6 @@ class LexicalToolbarElement extends HTMLElement {
|
|
|
807
815
|
${ToolbarIcons.h4} <span>Small Heading</span>
|
|
808
816
|
</button>
|
|
809
817
|
<div class="lexxy-editor__toolbar-separator" role="separator"></div>
|
|
810
|
-
<button type="button" name="strikethrough" data-command="strikethrough" title="Strikethrough" role="menuitem">
|
|
811
|
-
${ToolbarIcons.strikethrough} <span>Strikethrough</span>
|
|
812
|
-
</button>
|
|
813
|
-
<button type="button" name="underline" data-command="underline" title="Underline" role="menuitem">
|
|
814
|
-
${ToolbarIcons.underline} <span>Underline</span>
|
|
815
|
-
</button>
|
|
816
|
-
<div class="lexxy-editor__toolbar-separator" role="separator"></div>
|
|
817
818
|
<button type="button" name="clear-formatting" data-command="clearFormatting" title="Clear formatting" role="menuitem">
|
|
818
819
|
${ToolbarIcons.clearFormatting} <span>Clear formatting</span>
|
|
819
820
|
</button>
|
|
@@ -9360,6 +9361,8 @@ class TableController {
|
|
|
9360
9361
|
|
|
9361
9362
|
this.currentCellKey = cellNode?.getKey() ?? null;
|
|
9362
9363
|
this.currentTableNodeKey = tableNode?.getKey() ?? null;
|
|
9364
|
+
|
|
9365
|
+
return tableNode
|
|
9363
9366
|
}
|
|
9364
9367
|
|
|
9365
9368
|
executeTableCommand(command, customIndex = null) {
|
|
@@ -9862,9 +9865,8 @@ class TableTools extends HTMLElement {
|
|
|
9862
9865
|
|
|
9863
9866
|
#monitorForTableSelection() {
|
|
9864
9867
|
this.#listeners.track(this.#editor.registerUpdateListener(() => {
|
|
9865
|
-
this.tableController.updateSelectedTable();
|
|
9868
|
+
const tableNode = this.#editor.getRootElement() && this.tableController.updateSelectedTable();
|
|
9866
9869
|
|
|
9867
|
-
const tableNode = this.tableController.currentTableNode;
|
|
9868
9870
|
if (tableNode) {
|
|
9869
9871
|
this.#show();
|
|
9870
9872
|
} else {
|