quill-html-edit-button
Quill.js Module which allows you to quickly view/edit the HTML in the editor
Install
yarn add quill-html-edit-button
Quickstart
import { htmlEditButton } from "./quill.htmlEditButton.js";
Quill.register("modules/htmlEditButton", htmlEditButton);
const quill = new Quill(editor, {
modules: {
htmlEditButton: {}
}
});
Quickstart (script tag)
<script src="/dist/quill.htmlEditButton.min.js"></script>
<script>
Quill.register("modules/htmlEditButton", htmlEditButton);
const quill = new Quill(editor, {
modules: {
htmlEditButton: {}
}
});
</script>
Options
modules: {
htmlEditButton: {
debug: true,
msg: "Edit the content in HTML format",
okText: "Ok",
cancelText: "Cancel",
buttonHTML: "<>",
buttonTitle: "Show HTML source"
}
}
Thanks
This project is based on quill-image-uploader, thanks mate!