froala / wysiwyg-editor

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

Custom color issue - customTextColor is null on command.after #4168

Open felipehertzer opened 3 years ago

felipehertzer commented 3 years ago
Expected behavior.

Select custom colors and add them to the color panel for easy user access, such as recent color lists.

On the event 'commands.after' should be possible to get 'customTextColor'

Actual behavior.

Currently the user needs to paste the custom color every time he needs to change the color in the text. In addition, if the user does not select the text to change, the error below occurs:

froala_editor.min.js: 7 Uncaught TypeError: Cannot read property 'tagName' of undefined at Object.p [as openTagString] (froala_editor.min.js: 7) at Object.t [as applyStyle] (froala_editor.min.js: 7) at Object.i [as text] (plugins.pkgd.min.js: 7) at b.Bootstrap.callback (plugins.pkgd.min.js: 7) at Object.n [as exec] (froala_editor.min.js: 7) at i (froala_editor.min.js: 7) at r (froala_editor.min.js: 7) at t (froala_editor.min.js: 7) at b.Bootstrap.c (froala_editor.min.js: 7) at o (froala_editor.min.js: 7) at HTMLSpanElement. (froala_editor.min.js: 7) at HTMLDivElement. (froala_editor.min.js: 7)

On the event 'commands.after' the parameter 'customTextColor' is null

Steps to reproduce the problem.
Editor version.

3.2.6

YOU.

MacOS - 11.1

Browser.

Google Chrome - 88.0.4324.146

AkshayCM commented 2 years ago

Thank you for your feedback. The request has been reported to the product management team for evaluation and consideration for an upcoming release.