mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -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;
|
||||
}
|
||||
.fname { font-size: 14px; vertical-align: middle; padding-right: 5px; }
|
||||
img { max-width: 150; max-height: 150; }
|
||||
</style><script>
|
||||
%s
|
||||
|
||||
|
@ -826,6 +827,9 @@ class EditorWebView(AnkiWebView):
|
|||
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()
|
||||
if mime.hasUrls():
|
||||
return self._processUrls(mime)
|
||||
if mime.hasText() and (self.mw.config['stripHTML'] or
|
||||
|
|
Loading…
Reference in a new issue