react-simplemde-editor icon indicating copy to clipboard operation
react-simplemde-editor copied to clipboard

Editor fetches assets from external sources

Open ccadek opened this issue 2 years ago • 1 comments

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?

ccadek avatar Sep 19 '23 09:09 ccadek

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.

RIP21 avatar Dec 02 '23 12:12 RIP21