Added an Alert text style; Updated rich text editor to reorganize buttons and add text alignment options.

This commit is contained in:
2021-03-16 14:36:03 -07:00
parent 33cabd0a55
commit bf9d000994
31 changed files with 468 additions and 361 deletions

View File

@@ -1,27 +1,3 @@
{% extends "layout.html" %}
{% extends "basic.html" %}
{% block main %}
<div class="container" style="margin-top: 3rem">
{{ apos.area(data.page, "body", {
widgets: {
'apostrophe-images': {size: 'original'},
'apostrophe-rich-text': {
toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Indent', 'Outdent', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'Strike', 'Subscript', 'Superscript', 'Split'],
styles: [
{name: 'Paragraph', element: 'p'},
{name: 'Topic Paragraph', element: 'p', attributes: {class: "indent"} },
{name: 'Heading 2', element: 'h2'},
{name: 'Heading 3', element: 'h3'},
{name: 'Heading 4', element: 'h4'},
{name: 'Heading 5', element: 'h5'},
{name: 'highlighted', element: 'div', attributes: {class: "highlighted"} }
]
},
'apostrophe-files': {},
'two-column': {},
'two-column-1-2': {},
'two-column-2-1': {}
}
}) }}
</div>
{% endblock %}