From 8049464ee4f67a8eb5794346804290875463e48f Mon Sep 17 00:00:00 2001 From: bobzel Date: Thu, 13 Jul 2023 10:52:27 -0400 Subject: fixes for equation box default selections. --- src/client/documents/Documents.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client/documents') diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index 6cf335d1c..a39145151 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -1111,8 +1111,8 @@ export namespace Docs { return InstanceFromProto(Prototypes.get(DocumentType.LABEL), undefined, { ...(options || {}) }); } - export function EquationDocument(options?: DocumentOptions) { - return InstanceFromProto(Prototypes.get(DocumentType.EQUATION), undefined, { ...(options || {}) }, undefined, 'text'); + export function EquationDocument(text?: string, options?: DocumentOptions) { + return InstanceFromProto(Prototypes.get(DocumentType.EQUATION), text, { ...(options || {}) }, undefined, 'text'); } export function FunctionPlotDocument(documents: Array, options?: DocumentOptions) { -- cgit v1.2.3-70-g09d2