mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
resize images while editing
This commit is contained in:
parent
0499dd6cae
commit
f697858ebd
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,7 @@ _html = """
|
||||||
border: 1px solid #aaa; background:#fff; color:#000; padding: 5px;
|
border: 1px solid #aaa; background:#fff; color:#000; padding: 5px;
|
||||||
}
|
}
|
||||||
.fname { font-size: 14px; vertical-align: middle; padding-right: 5px; }
|
.fname { font-size: 14px; vertical-align: middle; padding-right: 5px; }
|
||||||
|
img { max-width: 150; max-height: 150; }
|
||||||
</style><script>
|
</style><script>
|
||||||
%s
|
%s
|
||||||
|
|
||||||
|
@ -826,6 +827,9 @@ class EditorWebView(AnkiWebView):
|
||||||
def _processMime(self, mime):
|
def _processMime(self, mime):
|
||||||
print "html=%s image=%s urls=%s txt=%s" % (
|
print "html=%s image=%s urls=%s txt=%s" % (
|
||||||
mime.hasHtml(), mime.hasImage(), mime.hasUrls(), mime.hasText())
|
mime.hasHtml(), mime.hasImage(), mime.hasUrls(), mime.hasText())
|
||||||
|
print "html", mime.html()
|
||||||
|
print "urls", mime.urls()
|
||||||
|
print "text", mime.text()
|
||||||
if mime.hasUrls():
|
if mime.hasUrls():
|
||||||
return self._processUrls(mime)
|
return self._processUrls(mime)
|
||||||
if mime.hasText() and (self.mw.config['stripHTML'] or
|
if mime.hasText() and (self.mw.config['stripHTML'] or
|
||||||
|
|
Loading…
Reference in a new issue