aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/formattedText/FormattedTextBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-10-14 19:55:32 -0400
committerbobzel <zzzman@gmail.com>2024-10-14 19:55:32 -0400
commit29b83f023442c313ca5cf95f70f6430f101060e6 (patch)
tree9847ff4419e50f5bc8b7c1512a07b72275cd3b40 /src/client/views/nodes/formattedText/FormattedTextBox.tsx
parenta60c12ddef3db4123dffb2c91b446d20633f523a (diff)
reorganized comparisonBox related components -- moved stuff down into Docs.Crete and CurrentUserUtils. changed Doc.Copy to copy Doc's in fields tagged with cloneOnCopy. Changed ComparisonBox to support hover for slide or flip views. Fixed pointerEfvents for hover in comparisonBox
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
-rw-r--r--src/client/views/nodes/formattedText/FormattedTextBox.tsx20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx
index 9d3a899f5..29be8d285 100644
--- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx
+++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx
@@ -76,26 +76,6 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<FormattedTextB
public static LayoutString(fieldStr: string) {
return FieldView.LayoutString(FormattedTextBox, fieldStr);
}
- /**
- * Creates a text box where the supplied text (and optional iimage) will be vertically
- * and horizontally centered. If text_placeholder is set to true, then the text will be
- * treated as placeholder text and automatically selected when the text box is selected.
- * @param title name of text box
- * @param text text to display in textbox
- * @param img optional image to add to text box
- * @param text_placeholder makes the text automatially select
- * @returns
- */
- public static centeredTextCreator(title: string, text: string, img?: Doc, text_placeholder?: boolean) {
- return Docs.Create.TextDocument(RichTextField.textToRtf(text, img?.[Id]), {
- title, //
- _layout_autoHeight: true,
- _layout_centered: true,
- text_align: 'center',
- text_placeholder,
- _layout_fitWidth: true,
- });
- }
public static MakeConfig(rules?: RichTextRules, props?: FormattedTextBoxProps) {
return {
schema,