diff options
author | eleanor-park <eleanor_park@brown.edu> | 2024-08-27 16:22:33 -0400 |
---|---|---|
committer | eleanor-park <eleanor_park@brown.edu> | 2024-08-27 16:22:33 -0400 |
commit | 6f73686ec4dc3e01ae3eacc0150aa59eafea0325 (patch) | |
tree | 392d6ebcb6122326441afbb7dfe69ff4cb583c1d /src/client/util/DropConverter.ts | |
parent | fd5278045e8c2e280d81cb965c0b2cc5afb59be8 (diff) |
pulling from master
Diffstat (limited to 'src/client/util/DropConverter.ts')
-rw-r--r-- | src/client/util/DropConverter.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/util/DropConverter.ts b/src/client/util/DropConverter.ts index 3e26fefad..aa7268b61 100644 --- a/src/client/util/DropConverter.ts +++ b/src/client/util/DropConverter.ts @@ -87,6 +87,10 @@ export function makeUserTemplateButton(doc: Doc) { return dbox; } +/** + * Similar to makeUserTemplateButton, but rather than creating a draggable button for the template, it takes in + * an ImageField that will display. + */ export function makeUserTemplateImage(doc: Doc, image: ImageField) { const layoutDoc = doc; // doc.layout instanceof Doc && doc.layout.isTemplateForField ? doc.layout : doc; if (layoutDoc.type !== DocumentType.FONTICON) { |