const editorSettings = {
modules: {
toolbar: '#toolbar',
// [
// [{ header: [1, 2, 3, 4, false] }],
// ["bold", "italic", "underline", { script: "super" }, "clean"],
// [
// { list: "ordered" }, { list: "bullet" }
// ],
// [{ indent: "-1" }, { indent: "+1" }],
// [{ align: ['', 'center', 'right', 'justify'] }],
// ["image"],
// ],
clipboard: { matchVisual: false }, // https://stackoverflow.com/a/46435236
htmlEditButton: { // https://github.com/benwinding/quill-html-edit-button/tree/master#customising-the-html-editor
syntax: true,
msg: "Edit the content in HTML format",
okText: "Apply", // Text to display in the OK button, default: Ok,
cancelText: "Discard changes", // Text to display in the cancel button, default: Cancel
// buttonHTML: "< / >",
// buttonHTML: "<HTML>",
buttonHTML: "</>",
closeOnClickOverlay: false,
debug: false,
},
},
theme: "snow",
// scrollingContainer: '#wysiwyg-wrap',
scrollingContainer: "html",
placeholder: "Contract text goes hereā¦",
}
export default editorSettings