froala / wysiwyg-editor

The next generation Javascript WYSIWYG HTML Editor.
https://www.froala.com/wysiwyg-editor
Other
5.28k stars 673 forks source link

TypeError: Cannot read property 'tagName' of undefined #4136

Closed aiden201205 closed 3 years ago

aiden201205 commented 3 years ago

Froala Version 3.2.5

Expected behavior. In an empty editor click to change the text color and choose a color. Should close the popup and set the text color to whatever you choose.

Actual behavior. In an empty editor click to change the text color and choose a color. It gets this error: Uncaught TypeError: Cannot read property 'tagName' of undefined at Object.p [as openTagString] (froala_editor.min.js?b1fc:256) at Object.t [as applyStyle] (froala_editor.min.js?b1fc:1821) at Object.i [as text] (plugins.pkgd.min.js?adc8:7) at b.Bootstrap.callback (plugins.pkgd.min.js?adc8:7) at Object.n [as exec] (froala_editor.min.js?b1fc:1063) at i (froala_editor.min.js?b1fc:4379) at r (froala_editor.min.js?b1fc:4389) at t (froala_editor.min.js?b1fc:4390) at b.Bootstrap.c (froala_editor.min.js?b1fc:4394) at o (froala_editor.min.js?b1fc:846)

Steps to reproduce the problem.

In an empty editor (either is already empty or all of the content is deleted) click to open the color picker Pick a color Note: It looks like it's grabbing the HEX Color (fr-input-line) as the selected text instead of the actual editor.

OS. Mac OS 10.15.6

Browser. Chrome 87.0.4280.88

yhyenifer commented 2 years ago

cual fue la solucion?

riv-riv commented 2 years ago

I have the same problem Can you tell me what the solution was?