diff options
author | bobzel <zzzman@gmail.com> | 2024-01-28 23:46:18 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-01-28 23:46:18 -0500 |
commit | 1a32884f5084d9c39190e44bd9331e94590322e5 (patch) | |
tree | cb01f5028d696664cbae66567bfe9fb550f423ff /src/fields/Doc.ts | |
parent | b8288a83669f1c6690082a18c7f4d14a76e31586 (diff) |
fixed inking when in panToScroll mode. fixed text templates to restore default text when all text is deleted. changed code blocks to stay in code black mode after a carriage return (unless its a hard break, e.g. shift+carriage return). added a ^@paint input rule to turn text documents into paint func docs.
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r-- | src/fields/Doc.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index f4141cf46..67f09f37b 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -63,6 +63,8 @@ export namespace Field { default: rawjava = field?.[ToJavascriptString]?.() ?? 'null'; } // prettier-ignore var script = rawjava; + // this is a bit hacky, but we treat '^@' references to a published document + // as a kind of macro to include the content of those documents Doc.MyPublishedDocs.forEach(doc => { const regex = new RegExp(`^\\^${doc.title}\\s`, 'm'); script = script.replace(regex, Cast(doc.text, RichTextField, null)?.Text ?? ''); |