<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Devajith</title>
    <description>The latest articles on Forem by Devajith (@devajithp).</description>
    <link>https://forem.com/devajithp</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1443724%2F21c3ba42-e246-4ee2-ac73-3767f6fb8542.png</url>
      <title>Forem: Devajith</title>
      <link>https://forem.com/devajithp</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/devajithp"/>
    <language>en</language>
    <item>
      <title>Facing an issue in froala text editor, style of the text is lost when the text is cut</title>
      <dc:creator>Devajith</dc:creator>
      <pubDate>Tue, 23 Apr 2024 08:56:10 +0000</pubDate>
      <link>https://forem.com/devajithp/facing-an-issue-in-froala-text-editor-style-of-the-text-is-lost-when-the-text-is-cut-451m</link>
      <guid>https://forem.com/devajithp/facing-an-issue-in-froala-text-editor-style-of-the-text-is-lost-when-the-text-is-cut-451m</guid>
      <description>&lt;p&gt;The use case for the bug is mentioned below:&lt;br&gt;
&lt;strong&gt;Precondition&lt;/strong&gt;&lt;br&gt;
Library used: &lt;code&gt;react-froala-wysiwyg&lt;/code&gt;&lt;br&gt;
set &lt;code&gt;keepFormatOnDelete&lt;/code&gt; as true in configuration&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Steps&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Type text on editor.&lt;/li&gt;
&lt;li&gt;Set a style(eg, make font bold)&lt;/li&gt;
&lt;li&gt;Select the complete text and cut (ctrl + x)&lt;/li&gt;
&lt;li&gt;Start typing again&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Issue&lt;/strong&gt;&lt;br&gt;
style of text lost (ie, font is not bold)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Expected result&lt;/strong&gt;&lt;br&gt;
text should be in bold as we set &lt;code&gt;keepFormatOnDelete&lt;/code&gt; as true in configuration&lt;/p&gt;

&lt;p&gt;please use this froala sandbox to test -&amp;gt; &lt;a href="https://jsfiddle.net/2ceagbjh/"&gt;https://jsfiddle.net/2ceagbjh/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>froala</category>
      <category>react</category>
      <category>wysiwyg</category>
    </item>
  </channel>
</rss>
