Quill.js Module which allows you to quickly view/edit the HTML in the editor
yarn add quill-html-edit-button
import { htmlEditButton } from "./quill.htmlEditButton.js";
Quill.register("modules/htmlEditButton", htmlEditButton);
const quill = new Quill(editor, {
// ...
modules: {
// ...
htmlEditButton: {}
}
});
<script src="/dist/quill.htmlEditButton.min.js"></script>
<script>
Quill.register("modules/htmlEditButton", htmlEditButton);
const quill = new Quill(editor, {
// ...
modules: {
// ...
htmlEditButton: {}
}
});
</script>
modules: {
// ...
htmlEditButton: {
debug: true // logging, default:false
}
}
This project is based on quill-image-uploader, thanks mate!