mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
fix media attachment
insertHtmlRemovingInitialBR() was removed in a previous PR
This commit is contained in:
parent
9e1eaacc06
commit
eea6bf963b
1 changed files with 1 additions and 1 deletions
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue