tneotia / html-editor-enhanced

A Flutter package that provides a WYSIWYG editor backed by flutter_inappwebview and the Summernote library.
https://pub.dev/packages/html_editor_enhanced
MIT License
269 stars 318 forks source link

[QUESTION] IOS - The editor doesn't load the first time I open it. #487

Open federicapo opened 6 months ago

federicapo commented 6 months ago

I am using version 2.5.1 of the plugin, and I have created a page with the HTML editor to display an email. When I install the app and open it, access the page, the editor loads but without the ability to write anything, and I don't see the content I put in init. If I then close and reopen the app, the HTML is displayed correctly, and I can edit it. On Android, this issue does not occur. If I try to click when it is not displayed, I receive the error: ReferenceError: Can't find variable: $.

Can you help me?

RJustoX commented 6 months ago

same with me, i've just close the app,rebuild it and worked fine

ahmed-mohsin commented 2 months ago

have the same bug in flutter web

ahmed-mohsin commented 2 months ago

After wrapping the HtmlEditor Widget with FutureBuilder it works fine in flutter web

FutureBuilder( future: Future.delayed(Duration(milliseconds: 50), () {}), builder: (context, snapshot) { if (snapshot.connectionState == ConnectionState.done) { return HtmlEditor(); } else { return SizedBox.shrink(); } } )