summaryrefslogtreecommitdiffstats
path: root/templates/widgets/HTMLarea.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/widgets/HTMLarea.html')
-rw-r--r--templates/widgets/HTMLarea.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/widgets/HTMLarea.html b/templates/widgets/HTMLarea.html
index 1f1c99a..50a332c 100644
--- a/templates/widgets/HTMLarea.html
+++ b/templates/widgets/HTMLarea.html
@@ -1,6 +1,8 @@
<div class="HTMLarea">
{% include "django/forms/widgets/textarea.html" %}
-<iframe id=preview class="HTMLpreview" {% include "django/forms/widgets/attrs.html" with widget=iframe %}></iframe>
+{% if preview %}
+<iframe class="HTMLpreview"></iframe>
+{% endif %}
<button type="button" class="addTag" data-tag="i">italic</button>
<button type="button" class="addTag" data-tag="b">bold</button>
<button type="button" class="addTag" data-tag="h2" data-attr="id=&quot;tophead&quot;">top heading</button>