flutter_summernote icon indicating copy to clipboard operation
flutter_summernote copied to clipboard

Doesn't work in Offline and in slow connection, strong external js libs depend

Open iBog opened this issue 4 years ago • 3 comments

Delayed init on slow internet connection, and empty editor screen in offline mode.

iBog avatar Feb 11 '22 12:02 iBog

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.

Jeferson505 avatar Apr 18 '22 02:04 Jeferson505

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

meg4cyberc4t avatar May 23 '22 11:05 meg4cyberc4t

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.

Jeferson505 avatar May 31 '22 19:05 Jeferson505