Skip to content

Commit 1e175a8

Browse files
committed
missed editor options
1 parent be79ebc commit 1e175a8

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,15 @@ Configurations
100100
DRACEDITOR_MARKDOWN_BASE_EMOJI_URL = 'https://assets-cdn.github.com/images/icons/emoji/' # default
101101
DRACEDITOR_MARKDOWN_BASE_MENTION_URL = 'https://forum.dracos-linux.org/profile/' # default (change this)
102102

103+
# Editor Options (use default for now)
104+
DRACEDITOR_EDITOR_OPTIONS = {
105+
'markdown': 'true',
106+
'toolbar': [
107+
'bold', 'italic', 'strike',
108+
'link', 'image', 'blockquote',
109+
'listUl', 'listOl', 'upload',
110+
]
111+
}
103112

104113
Usage
105114
------------------------------

draceditor/settings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
settings, 'DRACEDITOR_MARKDOWN_BASE_MENTION_URL', 'https://forum.dracos-linux.org/profile/'
5555
)
5656

57-
# https://getuikit.com/docs/htmleditor.html#javascript-options
5857
DRACEDITOR_EDITOR_OPTIONS = getattr(
5958
settings, 'DRACEDITOR_EDITOR_OPTIONS', {
6059
'markdown': 'true',

0 commit comments

Comments
 (0)