[minor] note image modal in pop-up (#3095)
This commit is contained in:
parent
ff2e37135d
commit
2e8b2eb756
1 changed files with 2 additions and 8 deletions
|
|
@ -1806,15 +1806,9 @@ frappe.ui.form.ControlTextEditor = frappe.ui.form.ControlCode.extend({
|
|||
}
|
||||
} else {
|
||||
this.upload_options.on_attach = function(fileobj, dataurl) {
|
||||
me.editor.summernote('insertImage', dataurl);
|
||||
me.image_dialog.hide();
|
||||
me.fileobj = fileobj;
|
||||
me.dataurl = dataurl;
|
||||
if(me.on_attach) {
|
||||
me.on_attach()
|
||||
}
|
||||
if(me.df.on_attach) {
|
||||
me.df.on_attach(fileobj, dataurl);
|
||||
}
|
||||
frappe.hide_progress();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue