RIP21 / react-simplemde-editor

React wrapper for simplemde (easymde) markdown editor
https://react-simplemde-edtior.netlify.com/
MIT License
766 stars 103 forks source link

Editor fetches assets from external sources #230

Open ccadek opened 1 year ago

ccadek commented 1 year ago

When this editor is loaded it fetches assets from the following locations:

https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css

https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.aff

https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.dic

https://maxcdn.bootstrapcdn.com/font-awesome/latest/fonts/fontawesome-webfont.woff2?v=4.7.0

Is it possible to have these assets bundled within the application as to not calls these assets from external sites?

RIP21 commented 9 months ago

I assume these are more questions to actual EasyMDE and Codemirror packages than to this wrapper. I have no control over these dependencies.

One possible option to solve for that, is to use 'patch-package' or similar, to patch these dependencies on postinstall changing there URLs, or removing them completely and importing these CSS, Fonts etc. manually.