mirror of
https://github.com/ankitects/anki.git
synced 2026-01-14 14:29:10 -05:00
fix media attachment
insertHtmlRemovingInitialBR() was removed in a previous PR
This commit is contained in:
parent
9b92d3ce1f
commit
c3ff88ab88
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