adjust media regexp to not trigger on mce_src

otherwise pasting the following will cause an error:

<img src="..." mce_src="/foo.png">
This commit is contained in:
Damien Elmes 2013-11-27 19:24:41 +09:00
parent 1f05392113
commit 0372f30220
2 changed files with 7 additions and 7 deletions

View file

@ -1092,11 +1092,11 @@ class EditorWebView(AnkiWebView):
self.savedClip = n
def _processMime(self, mime):
print "html=%s image=%s urls=%s txt=%s" % (
mime.hasHtml(), mime.hasImage(), mime.hasUrls(), mime.hasText())
print "html", mime.html()
print "urls", mime.urls()
print "text", mime.text()
# print "html=%s image=%s urls=%s txt=%s" % (
# mime.hasHtml(), mime.hasImage(), mime.hasUrls(), mime.hasText())
# print "html", mime.html()
# print "urls", mime.urls()
# print "text", mime.text()
if mime.hasHtml():
return self._processHtml(mime)
elif mime.hasUrls():