Tags attributes are not saved
When I try to insert an attribute (such as id, class, style, etc.) into a tag, it doesn't get saved.
Same problem here.
First time using Quill and this module, so I don't know if is a bug or a feature....
This plugin is only minimally useful. To be honest I'm not even sure it is useful, try editing anything here and you'll see it just doesn't work.
https://benwinding.github.io/quill-html-edit-button/javascript/
I was able to just manually fix HTML in the RTE by using inspect element, which is less than ideal, of course.
So to clarify, this plugin only allows you to edit quill compatible HTML unfortunately, as whatever HTML you add gets parsed by quill when you click save
This means you can't add random inline css, javascript, random HTML attributes etc... quill will strip that out
Ah, bummer -- I don't suppose there's any way to not have quill parse the HTML? To "shotgun" the problem somehow, at the developer's risk. Thank you for the reply.
Hi @VaelVictus
Here's the code that adds the HTML back into Quill in this plugin
https://github.com/benwinding/quill-html-edit-button/blob/8c3c63914bd503bf50ac38aac8901f0295143a52/src/quill.htmlEditButton.ts#L39-L41
You might be able to modify this library to do what you want