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

devajithp

Devajith

Posted on April 23, 2024

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/

💖 💪 🙅 🚩
devajithp
Devajith

Posted on April 23, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related