mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-15 19:27:11 +00:00
Refactorising CodeMirror HTML editor, with an ultimate aim to make it reusable. However more work if required...
This commit is contained in:
32
templates/widgets/HTMLarea.html
Normal file
32
templates/widgets/HTMLarea.html
Normal file
@@ -0,0 +1,32 @@
|
||||
<!--Creates the add image popup-->
|
||||
<div><div class="add-image-popup popup-overlay">
|
||||
<div class="add-image-popup popup-content">
|
||||
<h2>Select Image</h2>
|
||||
<p id="image_popup_content"> Loading ...</p>
|
||||
<button onclick="new_image_popup()">Upload Image</button>
|
||||
<button class="close" onclick="$('.add-image-popup').removeClass('active');">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--Creates the new image popup-->
|
||||
<div class="new-image-popup popup-overlay">
|
||||
<div class="new-image-popup popup-content">
|
||||
<h2>New Image</h2>
|
||||
<p id="new_image_popup_content"> Loading ...</p>
|
||||
<button class="close" onclick="$('.new-image-popup').removeClass('active');">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
{% include "django/forms/widgets/textarea.html" %}
|
||||
<iframe id=preview></iframe>
|
||||
<button type="button" onclick="addTag('i', '')">italic</button>
|
||||
<button type="button" onclick="addTag('b', '')">bold</button>
|
||||
<button type="button" onclick="addTag('h2', 'id="tophead"')">top heading</button>
|
||||
<button type="button" onclick="addTag('h1', '')">heading 1</button>
|
||||
<button type="button" onclick="addTag('h2', '')">heading 2</button>
|
||||
<button type="button" onclick="addTag('h3', '')">heading 3</button>
|
||||
<button type="button" onclick="addTag('h4', '')">heading 4</button>
|
||||
<button type="button" onclick="addTag('a', 'href=""')">hyperlink</button>
|
||||
<button type="button" onclick="addTag('p', '')">paragraph</button>
|
||||
<button type="button" onclick="add_image_popup()">image</button>
|
||||
<button type="button" onclick="addStr('<hr/>')">horizontal line</button>
|
||||
</div>
|
||||
Reference in New Issue
Block a user