quill icon indicating copy to clipboard operation
quill copied to clipboard

Customize delta -> html conversion

Open webdeb opened this issue 3 years ago • 3 comments

Hello, just started to experiment with quilljs. Looks interesting so far. I like the delta format, as it lets me represent the content as pure data. What I am missing so far is the ability to customize the rendering of the deltas in the editor itself. For example the italic format puts "em" tags around the selection. How could I change it to something different, lets say I want to wrap in a "span" with the class italic?

webdeb avatar Dec 01 '20 14:12 webdeb

You'd need to extend and override the classes relating to each item.

ncovercash avatar Dec 15 '20 05:12 ncovercash

Hello, just started to experiment with quilljs. Looks interesting so far. I like the delta format, as it lets me represent the content as pure data. What I am missing so far is the ability to customize the rendering of the deltas in the editor itself. For example the italic format puts "em" tags around the selection. How could I change it to something different, lets say I want to wrap in a "span" with the class italic?

Hi Webdeb,

Did you get any success with your requirement? Please let me know..

sri8484 avatar May 18 '22 19:05 sri8484

Hi Webdeb,

Did you get any success with your requirement? Please let me know..

Hi, after some deeper considarations I've decided to use react draft At that time (1.5y ago) it was the best option for me.

webdeb avatar May 18 '22 19:05 webdeb

https://quilljs.com/guides/how-to-customize-quill/ https://quilljs.com/playground/#class-vs-inline-style

benbro avatar Feb 01 '24 19:02 benbro