fix(Quill): Set HTML without triggering a focus (#6456)
This commit is contained in:
parent
4f0081743b
commit
c0cb56763d
1 changed files with 3 additions and 1 deletions
|
|
@ -171,7 +171,9 @@ frappe.ui.form.ControlTextEditor = frappe.ui.form.ControlCode.extend({
|
|||
return;
|
||||
}
|
||||
|
||||
this.quill.clipboard.dangerouslyPasteHTML(value);
|
||||
// set html without triggering a focus
|
||||
const delta = this.quill.clipboard.convert({ html: value, text: '' });
|
||||
this.quill.setContents(delta);
|
||||
},
|
||||
|
||||
get_input_value() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue