froala / react-froala-wysiwyg

React component for Froala WYSIWYG HTML Rich Text Editor.
https://froala.com/wysiwyg-editor
562 stars 130 forks source link

Froala crashes when the editor opened in an app loaded inside an iframe in firefox #166

Open pareshchouhan opened 5 years ago

pareshchouhan commented 5 years ago
Expected behavior.

Editor should load without crashing

Actual behavior.

Froala is crashing Crashing while calling editor.events.focus() in froalaEditor.initialized callback

Steps to reproduce the problem.

Initialize a froala Instance in an iframe in react using react-froala-wysiwyg:2.8.4 Call editor.events.focus() in froalaEditor.initialized callback

Editor version.

2.8.4

OS.

Ubuntu

Browser.

Firefox 67.0.3 (64-bit)

Recording.
raw TypeError: "a is null"
    i froala_editor.pkgd.min.js:7
    n froala_editor.pkgd.min.js:7
    froalaEditorInitialized caption.js:103
    jQuery 4
    u froala_editor.pkgd.min.js:7
    s froala_editor.pkgd.min.js:7
    jQuery 8
    t froala_editor.pkgd.min.js:7
    proxy jQuery
    n froala_editor.pkgd.min.js:7
    proxy jQuery
    _init froala_editor.pkgd.min.js:7
    s froala_editor.pkgd.min.js:7
    froalaEditor froala_editor.pkgd.min.js:7
    jQuery 2
    froalaEditor froala_editor.pkgd.min.js:7
    value index.js:1
    value index.js:1
    React 14
    Redux 4
    proxiedMethod createPrototypeProxy.js:44

This leads to call in our code, where editor.events.focus() is called

ImmRanneft commented 4 years ago

Same here

HarishSha commented 3 years ago

Same here

talal7860 commented 2 years ago

Same here