Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-11-29 21:36:43 +0300
committerJulius Härtl <jus@bitgrid.net>2019-12-02 10:39:20 +0300
commitffdf26ff3dcf4295b6f296881226b08afa90235d (patch)
tree6f1eb62960d5df5fc46d114a49dbb4ae5baa63f6 /src/EditorFactory.js
parent10488dcbf791388a49adb0e0d9d42e8ed48c167d (diff)
Implement checkbox support
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src/EditorFactory.js')
-rw-r--r--src/EditorFactory.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/EditorFactory.js b/src/EditorFactory.js
index b9acc42dd..9b37cb5c1 100644
--- a/src/EditorFactory.js
+++ b/src/EditorFactory.js
@@ -27,7 +27,6 @@ import {
Link,
BulletList,
OrderedList,
- ListItem,
Blockquote,
CodeBlock,
CodeBlockHighlight,
@@ -36,8 +35,9 @@ import {
Placeholder,
} from 'tiptap-extensions'
import { Strong, Italic, Strike } from './marks'
-import { Image, PlainTextDocument } from './nodes'
+import { Image, PlainTextDocument, ListItem } from './nodes'
import MarkdownIt from 'markdown-it'
+import taskLists from 'markdown-it-task-lists'
import { MarkdownSerializer, defaultMarkdownSerializer } from 'prosemirror-markdown'
@@ -107,6 +107,7 @@ const createEditor = ({ content, onInit, onUpdate, extensions, enableRichEditing
const markdownit = MarkdownIt('commonmark', { html: false, breaks: false })
.enable('strikethrough')
+ .use(taskLists, { enable: true, labelAfter: true })
const SerializeException = function(message) {
this.message = message