diff options
| author | bob <bcz@cs.brown.edu> | 2019-11-13 11:44:52 -0500 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-11-13 11:44:52 -0500 |
| commit | e1930a62304db60d9eca542148995c5d03b79aea (patch) | |
| tree | 0efd8b0083cd80e3f9f265fb39a3283807183367 /src/new_fields/RichTextUtils.ts | |
| parent | 76411ba009c4265751431d255ab3cc9a3cfab69f (diff) | |
fixed search on client/server to work with richTextFields. got rid of 'text' field on richtextfield extensions.
Diffstat (limited to 'src/new_fields/RichTextUtils.ts')
| -rw-r--r-- | src/new_fields/RichTextUtils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/new_fields/RichTextUtils.ts b/src/new_fields/RichTextUtils.ts index 601939ed2..c2cca859c 100644 --- a/src/new_fields/RichTextUtils.ts +++ b/src/new_fields/RichTextUtils.ts @@ -52,7 +52,7 @@ export namespace RichTextUtils { }; export const Synthesize = (plainText: string, oldState?: RichTextField) => { - return new RichTextField(ToProsemirrorState(plainText, oldState)); + return new RichTextField(ToProsemirrorState(plainText, oldState), plainText); }; export const ToPlainText = (state: EditorState) => { |
