tabs and draft working

This commit is contained in:
Nick Yeoman 2026-01-26 21:55:22 -08:00
parent 14ec6b7e7a
commit 9feccf9eaa
3 changed files with 16 additions and 6 deletions

View File

@ -29,9 +29,11 @@
</footer> </footer>
{% if editor == 'ace' %} {% if editor == 'ace' %}
{% include '@novaconium/javascript/ace.html.twig' %} {% include '@novaconium/javascript/page-edit.html.twig' %}
{% include '@novaconium/javascript/ace.html.twig' %}
{% endif %} {% endif %}
{% if debug is not empty %} {% if debug is not empty %}
<div id="debug"> <div id="debug">
<h2>Debugging Information</h2> <h2>Debugging Information</h2>

View File

@ -3,8 +3,3 @@
right before the /body right before the /body
such as javascript such as javascript
--> -->
{% include '@novaconium/javascript/page-edit.html.twig' %}
{% if editor == 'ace' %}
{% include '@novaconium/javascript/ace.html.twig' %}
{% endif %}

View File

@ -13,4 +13,17 @@
<textarea id="body" name="body" rows="10" style="display: none;">{{ rows.body|default('')|e('html') }}</textarea> <textarea id="body" name="body" rows="10" style="display: none;">{{ rows.body|default('')|e('html') }}</textarea>
<div id="body-editor" class="ace-editor"></div> {# Ace mounts here #} <div id="body-editor" class="ace-editor"></div> {# Ace mounts here #}
</div> </div>
</div>
<div class="form-group">
<label for="draft">
<input
type="checkbox"
id="draft"
name="draft"
value="1"
{% if rows.draft|default(false) %}checked{% endif %}
>
Save as draft
</label>
</div> </div>