Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to insert a <div> into the Quill editor and apply styles based on the class of that <div>. #998

Open
mayur-mku opened this issue Aug 27, 2024 · 1 comment

Comments

@mayur-mku
Copy link

react-quill version : "react-quill": "^2.0.0"
React version : "react": "^18.2.0",

I am inserting div inside react-quill but react-quill not let me insert div and add class.
and want this editable as well in react-quill
I also want to insert html inside react-quill editor. like following :

htmlString = `


---------- Replied message ---------

From: [email protected]

Subject: Re: to Anonymous sending mail

Date: Aug 21, 2024, 11:48 AM

To: [email protected]



<p>sending reply 2</p><p><br></p><p>--</p><p>ASDSADF</p><p class="encryptWaterMark"><span style="color: rgb(22, 22, 22);">Encrypted by </span><span style="color: rgb(0, 107, 85);">Anonymous</span></p> <br/><br/> <p></p><p><div class="blRepliedContent latest">
---------- Replied message --------- <br/>
From: [email protected]   <br/>
Subject: Re: to Anonymous sending mail   <br>
Date: Aug 21, 2024, 10:34 AM   <br/>
To: [email protected]  <br/><br/><br/><br/>



<p>reply one</p><p><br></p><p>--</p><p>ASDSADF</p><p class="encryptWaterMark"><span style="color: rgb(22, 22, 22);">Encrypted by </span><span style="color: rgb(0, 107, 85);">Anonymous</span></p> <br/><br/> <p></p><p><div class="blRepliedContent">
---------- Replied message --------- <br/>
From: [email protected]   <br/>
Subject: to Anonymous sending mail   <br>
Date: Aug 06, 2024, 15:13 PM   <br/>
To: [email protected]  <br/><br/><br/><br/>



<p><br></p><p>to Anonymous sending mail</p><p>--</p><p>ASDSADF</p><p class="encryptWaterMark"><span style="color: rgb(22, 22, 22);">Encrypted by </span><span style="color: rgb(0, 107, 85);">Anonymous</span></p>
                </div></p>
                </div></p>
                </div></p> `;
@mayur-mku
Copy link
Author

Screenshot(5)
I want to style just like this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant