fix media attachment

insertHtmlRemovingInitialBR() was removed in a previous PR
This commit is contained in:
Damien Elmes 2020-12-30 19:30:23 +10:00
parent 9e1eaacc06
commit eea6bf963b

View file

@ -731,7 +731,7 @@ class Editor:
except Exception as e:
showWarning(str(e))
return
self.web.eval("insertHtmlRemovingInitialBR(%s);" % json.dumps(html))
self.web.eval("setFormat('inserthtml', %s);" % json.dumps(html))
def _addMedia(self, path, canDelete=False):
"Add to media folder and return local img or sound tag."