diff --git a/aqt/clayout.py b/aqt/clayout.py index eb0f0b19b..69fc18630 100644 --- a/aqt/clayout.py +++ b/aqt/clayout.py @@ -215,7 +215,7 @@ class CardLayout(QDialog): styles = self.model.genCSS() self.form.preview.setHtml( ('%s' % - (getBase(self.deck, c), c.cssClass())) + + (getBase(self.deck), c.cssClass())) + "" + mungeQA(c.q(reload=True)) + self.maybeTextInput() + diff --git a/aqt/editor.py b/aqt/editor.py index 78f489d62..86a6f3e34 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -5,19 +5,18 @@ from PyQt4.QtGui import * from PyQt4.QtCore import * from PyQt4.QtSvg import * # fixme: obsolete? +from PyQt4.QtWebKit import QWebView import re, os, sys, tempfile, urllib2, ctypes, simplejson from anki.utils import stripHTML from anki.sound import play from anki.hooks import addHook, removeHook, runHook, runFilter from aqt.sound import getAudio from aqt.webview import AnkiWebView -from aqt.utils import shortcut, showInfo +from aqt.utils import shortcut, showInfo, showWarning, getBase import anki.js -# fixme: add code to escape from text field - _html = """ -