diff options
| author | bobzel <zzzman@gmail.com> | 2024-03-30 00:36:19 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-03-30 00:36:19 -0400 |
| commit | ad1b41beaa0c55487d41381bddd80ab1a76e7fb5 (patch) | |
| tree | d89f07c5a579992e415bbcb5fefd2fa7a8f99859 /src/client/views/nodes/formattedText/RichTextRules.ts | |
| parent | 75387187e260a7f569b73b1e6e8057e5623b9650 (diff) | |
added Labels button for turning ink labels on/off. added Pixels and Rotate buttons for images. enabled ink as template for text : check for ink stroke data on layout doc if it's not on data doc & started to have style provider check for properties on layout doc instead of data (background color, boxShadow). fixed toggling key/value on and off when node is selected.
Diffstat (limited to 'src/client/views/nodes/formattedText/RichTextRules.ts')
| -rw-r--r-- | src/client/views/nodes/formattedText/RichTextRules.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/RichTextRules.ts b/src/client/views/nodes/formattedText/RichTextRules.ts index 682d4f96f..483035e86 100644 --- a/src/client/views/nodes/formattedText/RichTextRules.ts +++ b/src/client/views/nodes/formattedText/RichTextRules.ts @@ -250,10 +250,11 @@ export class RichTextRules { if ( DocListCast((Doc.UserDoc().template_notes as Doc).data) + .concat(DocListCast((Doc.UserDoc().template_user as Doc).data)) .map(d => StrCast(d.title)) .includes(color) ) { - setTimeout(() => this.TextBox.DocumentView?.().switchViews(true, color)); + setTimeout(() => this.TextBox.DocumentView?.().switchViews(true, color, undefined, true)); return state.tr.deleteRange(start, end); } if (marks) { |
