Doesn't work in Offline and in slow connection, strong external js libs depend
Delayed init on slow internet connection, and empty editor screen in offline mode.
Hello, @iBog.
I forked this repository and restructured the code. One of the things I did was add offline mode support. Basically, I downloaded the JS and CSS files from the dependent libraries for the plugin.
My version of the plugin is available at the link: https://github.com/Jeferson505/flutter_summernote
Instructions on how to use it in a flutter project are in the Setup section of README.md.
The changes I made are described in the CHANGELOG.md file, available in: https://github.com/Jeferson505/flutter_summernote/blob/master/CHANGELOG.md
In the future, I plan to add my version of the plugin to pub.dev.
Unfortunately I couldn't support all languages in offline mode. This is because to provide a language in offline mode it is necessary to add to one of the JS files (summernote.js) the content of the desired language present in the files available at: https://github.com/Jeferson505/summernote/tree/develop/src/lang However, to add all the plugin would be an additional 500kb. I only added the following languages to offline mode:
- en-US
- es-ES
- fr-FR
- pt-BR
- pt-PT
Feel free to use it if it suits your needs.
I wanted to express my gratitude to @Jeferson505 for the work done. Until the changes merge, I will use your fork. You guys saved my life because I was very desperate in search of a good fast html editor. <3
Thank you very much, @meg4cyberc4t.
As there were major changes in the original architecture of the project, I chose not to do a PR. I intend to publish it pub.dev soon.
But if @chandrabezzo wishes, I can do the PR so that the changes are present in this lib as well.