integrate tiptap text editor

This commit is contained in:
bkfox
2024-04-30 18:29:34 +02:00
parent 55123c386d
commit 93fba2d46d
21 changed files with 327 additions and 149 deletions

View File

@ -18,6 +18,12 @@ aircox.labels = {% inline_labels %}
{% endif %}
{% endblock %}
{% block title-container %}
{{ block.super }}
{% block page-actions %}
{% include "aircox/widgets/page_actions.html" %}
{% endblock %}
{% endblock %}
{% block content-container %}
<a-select-file ref="cover-select"
@ -102,8 +108,11 @@ aircox.labels = {% inline_labels %}
<div>
<div class="field {% if field.name != "content" %}is-horizontal{% endif %}">
<label class="label">{{ field.label }}</label>
<div class="control clear-unset">
<div class="control clear-unset no-reset">
<a-editor name="{{ field.name }}" initial="{{ field.value }}"/>
{% comment %}
<textarea name="{{ field.name }}" class="is-fullwidth height-25">{{ field.value|default:""|striptags|safe }}</textarea>
{% endcomment %}
</div>
<p class="help">{{ field.help_text }}</p>
</div>