From 403dcfb5e8b659f62ed51212ede3f5807caa58c6 Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 10 Jun 2025 19:06:31 -0400 Subject: cleanup and streamlining of scrapbook code. --- src/client/documents/Documents.ts | 3 + .../collections/collectionFreeForm/MarqueeView.tsx | 112 ++-- .../views/nodes/formattedText/FormattedTextBox.tsx | 44 +- src/client/views/nodes/scrapbook/ScrapbookBox.scss | 87 +-- src/client/views/nodes/scrapbook/ScrapbookBox.tsx | 645 +++++++-------------- .../views/nodes/scrapbook/ScrapbookPreset.tsx | 169 ++---- .../nodes/scrapbook/ScrapbookPresetRegistry.ts | 20 +- 7 files changed, 353 insertions(+), 727 deletions(-) (limited to 'src') diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index 4ad9c9bd8..aea636040 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -331,6 +331,9 @@ export class DocumentOptions { toolType?: string; // type of pen tool expertMode?: BOOLt = new BoolInfo('something available only in expert (not novice) mode'); + placeholder_docType?: STRt = new StrInfo('type of document that this document accepts as a child', false, false, Array.from(Object.keys(DocumentType))); + placeholder_acceptTags?: List; + contextMenuFilters?: List; contextMenuScripts?: List; contextMenuLabels?: List; diff --git a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx index b2b904509..12515a72c 100644 --- a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx +++ b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx @@ -81,14 +81,11 @@ export class MarqueeView extends ObservableReactComponent