quill editor styling

This commit is contained in:
Burak Civan
2022-07-28 12:02:37 +03:00
parent 961c6d4fe6
commit 7ac91b7b31
3 changed files with 29 additions and 9 deletions

View File

@ -80,11 +80,15 @@ export default {
}
},
content (newVal) {
content (newVal) {
// #337y1z3 This issue reason <p> tag broken email template
newVal = newVal.replace(/(<p[^>]+?>|<p>|<\/p>)/img, "");
this.$emit('input', newVal);
document.querySelectorAll('.ql-tooltip').forEach((tooltip) => {
tooltip.querySelector('input').focus();
});
},
},
}