html-editor-enhanced icon indicating copy to clipboard operation
html-editor-enhanced copied to clipboard

Unhandled Exception: Exception: HTML editor is still loading (JS not working)

Open sunnyasr opened this issue 2 years ago • 4 comments

[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: Exception: HTML editor is still loading, please wait before evaluating this JS: $('#summernote-2').summernote('focus');! #0 HtmlEditorController._evaluateJavascript (package:html_editor_enhanced/src/html_editor_controller_mobile.dart:261:9) #1 HtmlEditorController.setFocus (package:html_editor_enhanced/src/html_editor_controller_mobile.dart:99:5) #2 EditorController.onReady (package:coope_new/view/single_task/editor/controller/editor_controller.dart:37:30) #3 DisposableInterface.onInit. (package:get/get_state_manager/src/rx_flutter/rx_disposable.dart:21:44) #4 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1175:15) #5 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1113:9) #6 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1015:5) #7 _invoke (dart:ui/hooks.dart:148:13) #8 PlatformDispat<…> flutter: JavaScript execution returned a result of an unsupported type

Additional context Add any other context about the problem here.

sunnyasr avatar Feb 14 '23 04:02 sunnyasr

the same

mariamalbarghouti avatar Feb 23 '23 18:02 mariamalbarghouti

Encountered the same issue.

ankeet7x avatar Mar 27 '23 06:03 ankeet7x

same

beyzatsc avatar Jun 12 '23 13:06 beyzatsc

Temporary Fixer: I resolved this by adding a 2 sec delay when using controller.setText(). and now I have a new problem. on navigation back.

Error:- [ERROR:aw_browser_terminator.cc(125)] Renderer process (27984) crash detected (code -1). E/flutter (27785): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method isLoading on channel com.pichillilorenzo/flutter_inappwebview_0) E/flutter (27785): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:308:7) E/flutter (27785): E/flutter (27785): #1 InAppWebViewController.isLoading (package:flutter_inappwebview/src/in_app_webview/in_app_webview_controller.dart:1425:12) E/flutter (27785): E/flutter (27785): #2 HtmlEditorController._evaluateJavascript (package:html_editor_enhanced/src/html_editor_controller_mobile.dart:260:39) E/flutter (27785): E/flutter (27785): E/flutter (27785): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method isLoading on channel com.pichillilorenzo/flutter_inappwebview_1) E/flutter (27785): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:308:7) E/flutter (27785): E/flutter (27785): #1 InAppWebViewController.isLoading (package:flutter_inappwebview/src/in_app_webview/in_app_webview_controller.dart:1425:12) E/flutter (27785): E/flutter (27785): #2 HtmlEditorController._evaluateJavascript (package:html_editor_enhanced/src/html_editor_controller_mobile.dart:260:39) E/flutter (27785):

khize-r avatar Nov 20 '23 06:11 khize-r