summaryrefslogtreecommitdiffstats
path: root/templates/widgets/HTMLarea.html
diff options
context:
space:
mode:
authorMartin Green <martin.speleo@gmail.com>2022-06-26 21:29:46 +0100
committerMartin Green <martin.speleo@gmail.com>2022-06-26 21:29:46 +0100
commit47d166203304f971ed2fb7a5deccdd9352778570 (patch)
tree2979c9be5fcb4b842093758cc29a87b8e93b87b6 /templates/widgets/HTMLarea.html
parent4e5d8d1d7612354204d4f1fbbc078482dcdae2b4 (diff)
downloadtroggle-47d166203304f971ed2fb7a5deccdd9352778570.tar.gz
troggle-47d166203304f971ed2fb7a5deccdd9352778570.tar.bz2
troggle-47d166203304f971ed2fb7a5deccdd9352778570.zip
Added help writing HTML in the cave editing form. Made the HTML previews optional
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>