aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/formattedText/FormattedTextBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-10-10 15:54:13 -0400
committerbobzel <zzzman@gmail.com>2024-10-10 15:54:13 -0400
commite329ac0aea297e63401c7853fbf2d9d6b280cc2d (patch)
tree746a6091e9986c79f65bb65a8c010cff06ed1e2f /src/client/views/nodes/formattedText/FormattedTextBox.tsx
parenteded7f5aa62a2f0e19d5887a91ebc76163bdb996 (diff)
change the default flashcard to have a thin border and have text fill the card and be vertically and horizontally centered.
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
-rw-r--r--src/client/views/nodes/formattedText/FormattedTextBox.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx
index dac869f56..448dd5646 100644
--- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx
+++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx
@@ -1517,6 +1517,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<FormattedTextB
selectAll(this._editorView.state, tr => {
this._editorView!.dispatch(tr.replaceSelectionWith(state.schema.nodes.paragraph.create({ align: textAlign })));
});
+ this.tryUpdateDoc(true);
}
}
this._editorView.TextView = this;