aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/formattedText/FormattedTextBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-08-19 16:42:56 -0400
committerbobzel <zzzman@gmail.com>2024-08-19 16:42:56 -0400
commite57584a1be9d428fb40fc789494a7ac0ac14fb84 (patch)
tree55e6204ea0c676ae1d2fe8ba162cd6c3cb0ff661 /src/client/views/nodes/formattedText/FormattedTextBox.tsx
parentb6f6acb80f57011594d39b9ce576a5e77862cb7f (diff)
extensive fixes to DiagramBox
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
-rw-r--r--src/client/views/nodes/formattedText/FormattedTextBox.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx
index e21902fdd..a88bd8920 100644
--- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx
+++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx
@@ -1464,7 +1464,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<FormattedTextB
} else if (!FormattedTextBox.DontSelectInitialText) {
const mark = schema.marks.user_mark.create({ userid: ClientUtils.CurrentUserEmail(), modified: Math.floor(Date.now() / 1000) });
selectAll(this._editorView.state, (tx: Transaction) => {
- this._editorView?.dispatch(tx.deleteSelection().addStoredMark(mark));
+ this._editorView?.dispatch(tx.addStoredMark(mark));
});
this.tryUpdateDoc(true); // calling select() above will make isContentActive() true only after a render .. which means the selectAll() above won't write to the Document and the incomingValue will overwrite the selection with the non-updated data
} else {
@@ -2090,6 +2090,7 @@ Docs.Prototypes.TemplateMap.set(DocumentType.RTF, {
_layout_nativeDimEditable: true,
_layout_reflowVertical: true,
_layout_reflowHorizontal: true,
+ _layout_noSidebar: true,
defaultDoubleClick: 'ignore',
systemIcon: 'BsFileEarmarkTextFill',
},