<?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>DEV Community: Ruslan Novikov</title>
    <description>The latest articles on DEV Community by Ruslan Novikov (@nofikoff).</description>
    <link>https://dev.to/nofikoff</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%2F518907%2F92fc5140-36a9-4617-a34e-899f84a1adfd.jpeg</url>
      <title>DEV Community: Ruslan Novikov</title>
      <link>https://dev.to/nofikoff</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nofikoff"/>
    <language>en</language>
    <item>
      <title>Adding Quill Module into ReactQuill in React App TS</title>
      <dc:creator>Ruslan Novikov</dc:creator>
      <pubDate>Mon, 06 Nov 2023 16:51:43 +0000</pubDate>
      <link>https://dev.to/nofikoff/adding-quill-module-into-reactquill-in-react-app-ts-2hgh</link>
      <guid>https://dev.to/nofikoff/adding-quill-module-into-reactquill-in-react-app-ts-2hgh</guid>
      <description>&lt;p&gt;In this example, I'm importing the htmlEditButton module into Quill. There are example of my  component&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import React, { Dispatch, FC, SetStateAction } from "react";
import htmlEditButton from "quill-html-edit-button";
import ReactQuill, { Quill } from "react-quill";
import "react-quill/dist/quill.snow.css";
import style from "./QuillEditor.module.scss";

const QuillEditor: FC&amp;lt;{
  richText?: string;
  setRichText: Dispatch&amp;lt;SetStateAction&amp;lt;string&amp;gt;&amp;gt;;
}&amp;gt; = ({ setRichText, richText }) =&amp;gt; {
  Quill.register({
    "modules/htmlEditButton": htmlEditButton,
  });

  return (
    &amp;lt;ReactQuill
      className={style.wrapper}
      modules={{
        toolbar: [
          ["bold", "italic"],
          [{ color: [] }],
          [{ list: "ordered" }, { list: "bullet" }],
          [{ indent: "-1" }, { indent: "+1" }, { align: [] }],
          ["link"],
        ],
        htmlEditButton: { debug: false, syntax: false },
      }}
      theme="snow"
      onChange={setRichText}
      value={richText}
    /&amp;gt;
  );
};

export default QuillEditor;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>rearectquill</category>
      <category>react</category>
      <category>javascript</category>
      <category>htmleditbutton</category>
    </item>
  </channel>
</rss>
