SimpleMDE for Flarum
xdass You need to access SSH, If you don't just do it on your local computer.
Windows
You need to have Composer installed. I assue you already have that since you installed flarum.
open up your CMD point it to your flarum installation root and write
composer require xengine/flarum-ext-markdown-editor
OSX
It's the same as windows use Terminal instead of CMD ?
Finally
Go to your vendor directory and copy folder named XEngine to your FTP's vendor directory. I think you are good to go man!
- Edited
It works. Thanks.
- Edited
First, thanks for your great work.
But can you consider changing the library behind your extension ? SimpleMDE is very heavy and not suitable for a forum because this markdown editor is bundled and depends on CodeMirror library, a browser text editor, like notepad++ in terms of functionality.
We just need few buttons that insert markdown tags in a textaera, not really a full text editor.
Thanks ?
- Edited
I use toopay/bootstrap-markdown for my chat application but it requires a bootstrap front-end and flarum doesn't use bootstrap. Maybe someone else know another small library or do it your self ?, something very simple with some buttons and JS to add markdown in a textarea.
I released a new version! Which is using Pagedown, almost as the same as StackOverflow's editor. If you want to keep going with the SimpleMDE use the latest 0.5 version.
XEngine Seems great, it does break the forum though if you do not clear your cache after installing this plugin.
How can i update?
- Edited
XEngine Thanks! It looks like this extension is blocking the image and file upload extension. Can you please look into it? See this for pictures:
WIthout your extension: http://i.imgur.com/IAjmZyZ.png
With your extension: http://i.imgur.com/PANgMXX.png
Blocked extensions are:
https://discuss.flarum.org/d/4154-flagrow-file-upload-the-intelligent-file-attachment-extension
https://discuss.flarum.org/d/1836-flagrow-image-uploader-for-flarum-forum-messages
For me, trying just a few moments ago, it installs and I cleared the cache.
When I go to enter a reply, the editor disappears completely and won't return until I load another discussion or refresh the page. It does it every time I click in to the editor box to start a reply.
I have tried disabling/re-nabling and all combinations thereof while also clearing the cache.
DAMNimST0NED Chrome. I didn't peak in the console at the time and now on my phone. Not sure when I'll get to checking it … wisdom teeth out tomorrow morning. ?
When releasing a fixed version, I think I forgot to compile Pagedown editor's files. 1.3.1 Version has the fix now.
- Edited
XEngine how difficult would it be to add my flagrow/upload button into your extension instead of at the button, I'd consider supporting (and suggesting your package) the upload integration into simplemde. Are there any hooks?
Hit me up on https://gitter.im/luceos