sparksuite / simplemde-markdown-editor

A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://simplemde.com
MIT License
9.79k stars 1.12k forks source link

FontAwesome & SimpleMDE compatibility #789

Open ghost opened 4 years ago

ghost commented 4 years ago

I try to add some icons from FontAwesome in my Flask project, it's working, great. The problem is I use too flask-simplemde in this project. This is just an implementation of SimpleMDE for Flask (Python framework). Both are not friends.

I know that SimpleMDE retrieve icons from FontAwesome and some are not showing up because I have imported FontAwesome for another needs in my project.

simplemde

Here is the configuration I made for SimpleMDE :

<script> var simplemde = new SimpleMDE({ autoDownloadFontAwesome: undefined, element: document.getElementById("%s") </script>

As you see, I tried to use autoDownloadFontAwesome but it's not working or I don't use it correctly. It's supposed to load FontAwesome only if not already included right ? 🤔

Thank you for help !

Ruud-cb commented 4 years ago

https://github.com/sparksuite/simplemde-markdown-editor/blob/6abda7ab68cc20f4aca870eb243747951b90ab04/src/js/simplemde.js#L1280

I have the same issue where I want to load fontAwesome via a relative path instead of cdn. Seems that they enforce to load via CDN.

ghost commented 4 years ago

Go with EasyMDE which is a fork of this project. It's largely better ! Font awesome compatibility is included 👍