UNPKG

apostrophe-editor-2

Version:

A new content area editor for Apostrophe. Integrates ckeditor and allows the option of using other rich text editors. Alternative content area editors can also be created following the same interface.

15 lines (14 loc) 905 B
<ul data-content-menu class="apos-ui-container apos-ui apos-ui-dropdown"> {# js will strip out the toggle span when the "add" button is being used. #} {# When the menu is at the top of an area the toggle span does appear. #} <li><span class="apos-ui-btn apos-content-menu-toggle" data-content-menu-toggle><i class="icon-plus"></i> {% if addLabel %}{{ __(addLabel) | e }}{% else %}{{ __('Add Content') }}{%endif %} </span> <ul class="apos-editor2-content-menu-options apos-ui-menu" data-content-menu-options> {% for control in controls %} {# Bold, italic, etc. are not item types, here we pay attention only to controls that are #} {% if itemTypes[control] %} <li data-add-item-type="{{ control }}"><i class="{{ itemTypes[control].icon }} fw icon-fw"></i> {{ __(itemTypes[control].label) | e }}</li> {% endif %} {% endfor %} </ul> </li> </ul>