fix: Text editor set focus

This commit is contained in:
Faris Ansari 2019-06-28 13:15:36 +05:30
parent 5683fe0628
commit ebfeb34d1a

View file

@ -270,6 +270,9 @@ frappe.ui.form.ControlTextEditor = frappe.ui.form.ControlCode.extend({
getListLevel(el) {
const className = el.className || '0';
return +className.replace(/[^\d]/g, '');
}
},
set_focus() {
this.quill.focus();
}
});