{% comment %} Rich-text field with formatting tools and a searchable Template command, also available as /template. Templates are filtered by user access, without content-type restrictions. Set toolbar=False to hide the formatting toolbar while keeping editor commands. Set editor_rows to control the initial height of the editable area in text rows. Selection inserts an editable copy at the cursor or replaces selected text. The bubbling, cancellable bloomerp:template-selected event carries detail.template (id, name, body) and detail.insert(body). Specialized editors can preventDefault(), prepare their variable context, then call insert to preserve the original selection. {% endcomment %} {% load bloomerp l10n %} {% generate_uuid as editor_uuid %} {% with editor_id=editor_uuid|add:"-"|add:name %} {% firstof toolbar|default_if_none:""|stringformat:"s"|lower include_toolbar|default_if_none:""|stringformat:"s"|lower "true" as show_toolbar %}
{% if show_toolbar != "false" %}
{% endif %}
{% endwith %}