diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2020-01-27 23:30:32 -0500 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2020-01-27 23:30:32 -0500 |
commit | df88c30ec47a2a80c9723f7a6b7ac203dffe34a1 (patch) | |
tree | 65433ac358fbff82e58480885debae0c9d2fabe4 /src/client/util/RichTextRules.ts | |
parent | e864a54e0ef509f540f9be550a853878046b14d3 (diff) |
fixed templates for texts
Diffstat (limited to 'src/client/util/RichTextRules.ts')
-rw-r--r-- | src/client/util/RichTextRules.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/util/RichTextRules.ts b/src/client/util/RichTextRules.ts index 389c84c54..1de8e7175 100644 --- a/src/client/util/RichTextRules.ts +++ b/src/client/util/RichTextRules.ts @@ -207,11 +207,11 @@ export const inpRules = { const textDocInline = Docs.Create.TextDocument("", { _width: 75, _height: 35, backgroundColor: "yellow", annotationOn: textDoc, _autoHeight: true, fontSize: 9, title: "inline comment" }); textDocInline.layoutKey = "layout_" + inlineFieldKey; textDocInline.customTitle = true; - textDocInline.title = inlineFieldKey; textDocInline.isTemplateForField = inlineFieldKey; + textDocInline.title = inlineFieldKey; textDocInline.proto = textDoc; textDoc[textDocInline.layoutKey] = FormattedTextBox.LayoutString(inlineFieldKey); - textDoc[inlineFieldKey] = "-inline-"; + textDoc[inlineFieldKey] = ""; const node = (state.doc.resolve(start) as any).nodeAfter; const newNode = schema.nodes.dashComment.create({ docid: textDocInline[Id] }); const dashDoc = schema.nodes.dashDoc.create({ width: 75, height: 35, title: "dashDoc", docid: textDocInline[Id], float: "right" }); |