diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-06-25 19:42:13 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-06-25 19:42:13 +0300 |
commit | 8ec64e9b37a9334c3eb914f3007b4438b4177ce0 (patch) | |
tree | 2b0c65620c8266ae94f816241218507b2ac664f0 | |
parent | b893284b30e28f4554230279e4f1b39d41a23fbf (diff) |
Fix tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r-- | src/tests/index.spec.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/tests/index.spec.js b/src/tests/index.spec.js index b2dd0bdc4..b0d33e341 100644 --- a/src/tests/index.spec.js +++ b/src/tests/index.spec.js @@ -3,7 +3,8 @@ import spec from "./fixtures/spec" const markdownToDocument = (markdown) => { const tiptap = createEditor({ - content: markdownit.render(markdown) + content: markdownit.render(markdown), + enableRichEditing: true }) const serializer = createMarkdownSerializer(tiptap.nodes, tiptap.marks) return tiptap.state.doc @@ -11,7 +12,8 @@ const markdownToDocument = (markdown) => { const documentToMarkdown = (document) => { const tiptap = createEditor({ - content: document + content: document, + enableRichEditing: true }) const serializer = createMarkdownSerializer(tiptap.nodes, tiptap.marks) const markdown = serializer.serialize(document) @@ -19,7 +21,8 @@ const documentToMarkdown = (document) => { const markdownThroughEditor = (markdown) => { const tiptap = createEditor({ - content: markdownit.render(markdown) + content: markdownit.render(markdown), + enableRichEditing: true }) const serializer = createMarkdownSerializer(tiptap.nodes, tiptap.marks) return serializer.serialize(tiptap.state.doc) @@ -27,7 +30,8 @@ const markdownThroughEditor = (markdown) => { const markdownThroughEditorHtml = (html) => { const tiptap = createEditor({ - content: html + content: html, + enableRichEditing: true }) const serializer = createMarkdownSerializer(tiptap.nodes, tiptap.marks) return serializer.serialize(tiptap.state.doc) |