diff options
| author | bobzel <zzzman@gmail.com> | 2021-03-06 15:49:22 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-03-06 15:49:22 -0500 |
| commit | ea0ec26d362d6794b9020a60b55cf6c38368aef4 (patch) | |
| tree | 8a364e6dc1c1a0c90258526528b0bacc009bb86e /src/client/views/nodes/formattedText/RichTextRules.ts | |
| parent | b56d4f3c8774e059ed748dd4f831c1c743c7e40a (diff) | |
cleaned up a little bit in doc decorations.
Diffstat (limited to 'src/client/views/nodes/formattedText/RichTextRules.ts')
| -rw-r--r-- | src/client/views/nodes/formattedText/RichTextRules.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/views/nodes/formattedText/RichTextRules.ts b/src/client/views/nodes/formattedText/RichTextRules.ts index e5d924f42..4b9b78211 100644 --- a/src/client/views/nodes/formattedText/RichTextRules.ts +++ b/src/client/views/nodes/formattedText/RichTextRules.ts @@ -316,8 +316,7 @@ export class RichTextRules { if (!fieldKey && !docid) return state.tr; docid && DocServer.GetRefField(docid).then(docx => { if (!(docx instanceof Doc && docx)) { - const docx = Docs.Create.FreeformDocument([], { title: rawdocid, _width: 500, _height: 500 }, docid); - DocUtils.Publish(docx, docid, returnFalse, returnFalse); + Docs.Create.FreeformDocument([], { title: rawdocid, _width: 500, _height: 500 }, docid); } }); const node = (state.doc.resolve(start) as any).nodeAfter; |
