make the "type:" input readonly in the front preview

This commit is contained in:
Shuai Lin 2018-08-28 09:01:07 +08:00
parent b5a8d3f47c
commit 055c98f883

View file

@ -330,7 +330,7 @@ Please create a new card type first."""))
res = "<hr id=answer>" + res res = "<hr id=answer>" + res
return res return res
if type == 'q': if type == 'q':
repl = "<input id='typeans' type=text value='exomple'>" repl = "<input id='typeans' type=text value='exomple' readonly='readonly'>"
repl = "<center>%s</center>" % repl repl = "<center>%s</center>" % repl
else: else:
repl = answerRepl repl = answerRepl