DEV Community

Devajith
Devajith

Posted on

Facing an issue in froala text editor, style of the text is lost when the text is cut

The use case for the bug is mentioned below:
Precondition
Library used: react-froala-wysiwyg
set keepFormatOnDelete as true in configuration

Steps

  1. Type text on editor.
  2. Set a style(eg, make font bold)
  3. Select the complete text and cut (ctrl + x)
  4. Start typing again

Issue
style of text lost (ie, font is not bold)

Expected result
text should be in bold as we set keepFormatOnDelete as true in configuration

please use this froala sandbox to test -> https://jsfiddle.net/2ceagbjh/

Top comments (0)