2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-22 23:31:52 +00:00
troggle/templates/widgets/HTMLarea.html

28 lines
1.1 KiB
HTML

<div class="HTMLarea">
{% include "django/forms/widgets/textarea.html" %}
<!-- this overrides django/forms/widgets/textarea.html
This is used by the HTML editor stuff that Martin wrote
-->
{% 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>
-->
<button type="button" class="addTag" data-tag="h1">heading 1</button>
<button type="button" class="addTag" data-tag="h2">heading 2</button>
<button type="button" class="addTag" data-tag="h3">heading 3</button>
<button type="button" class="addTag" data-tag="h4">heading 4</button>
<button type="button" class="addTag" data-tag="a" data-attr='href=&quot;&quot;'>hyperlink</button>
<button type="button" class="addTag" data-tag="p">paragraph</button>
<button type="button" class="addImage">image</button>
<!--
<button type="button" class="addStr" data-str="</hr>">horizontal line</button>
-->
</div>