diff options
| author | bobzel <zzzman@gmail.com> | 2021-09-24 09:10:57 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-09-24 09:10:57 -0400 |
| commit | 851647c8d399dc6e5d036ac11cbce4e8dd8c2eb9 (patch) | |
| tree | 6aadfb3e43882bcf1e7532c2f57eeb4be33b28ea /src/fields/RichTextUtils.ts | |
| parent | a4b3114f3792c80e20a3f40053ec4724729c1100 (diff) | |
| parent | 643df77e6366b7164307ffe195ed9de83b68e5ae (diff) | |
Merge branch 'master' into temporalmedia-mehek
Diffstat (limited to 'src/fields/RichTextUtils.ts')
| -rw-r--r-- | src/fields/RichTextUtils.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fields/RichTextUtils.ts b/src/fields/RichTextUtils.ts index 0b5f14d74..a19be5df9 100644 --- a/src/fields/RichTextUtils.ts +++ b/src/fields/RichTextUtils.ts @@ -2,7 +2,7 @@ import { AssertionError } from "assert"; import { docs_v1 } from "googleapis"; import { Fragment, Mark, Node } from "prosemirror-model"; import { sinkListItem } from "prosemirror-schema-list"; -import { Utils } from "../Utils"; +import { Utils, DashColor } from "../Utils"; import { Docs, DocUtils } from "../client/documents/Documents"; import { schema } from "../client/views/nodes/formattedText/schema_rts"; import { GooglePhotos } from "../client/apis/google_docs/GooglePhotosClientUtils"; @@ -482,7 +482,7 @@ export namespace RichTextUtils { } const fromHex = (color: string): docs_v1.Schema$OptionalColor => { - const c = Color(color); + const c = DashColor(color); return fromRgb.convert(c.red(), c.green(), c.blue()); }; |
