torchbox / wagtail-markdown

Markdown support for Wagtail
zlib License
198 stars 66 forks source link

Customise SimpleMDE options? #64

Closed thomas-ricci closed 2 years ago

thomas-ricci commented 5 years ago

Hi all, and thank you Torchbox!

Is it possible to customise the SimpleMDE configuration like this? I would like to hide some icons and disable spell checking.

I can access /static/wagtailmarkdown/js/simplemde.attach.js and modify options during the creation of the new SimpleMDE() but nothing seems to apply. If I try console.log('test') in this file I also can't see the log, so I'm assuming this file isn't what is being read when editing my pages in Wagtail, however the debugger says my browser is pulling this exact file:

image

Any help would be greatly appreciated! Thank you.

photong commented 4 years ago

I can verify that changing options in simplemde.attach.js works. I turned off the spellchecker by setting "spellChecker: false".

jeriox commented 2 years ago

Would love that feature as well as we want to add additional buttons to the SimpleMDE toolbar

zerolab commented 2 years ago

Hey all, I will gladly review a PR for this ;)

zerolab commented 2 years ago

Fixed by #104/#105