Closed falkodev closed 4 years ago
<th></th>
git clone git@github.com:apostrophecms/apostrophe-boilerplate.git && git checkout tiptap-improvements && npm i
npm link
(every other step => in apostrophe-boilerplate)
npm link apostrophe-tiptap-rich-text-widgets
app.js
modules: { ... 'apostrophe-tiptap-rich-text-widgets': {}, }
lib/modules/apostrophe-pages/views/pages/home.html
{{ apos.area(data.page, 'richText', { widgets: { 'apostrophe-rich-text': { toolbar: [ 'bold', 'italic', 'link', 'table', 'import', 'undo', 'redo' ], styles: [ { tag: 'p', label: 'Paragraph' }, { tag: 'h3', label: 'Heading' }, { tag: 'h3', 'class': 'right', label: 'Heading (Right)' } ] } } }) }}
npm start
Table improvements
Content
<th></th>
on a row or a column with new buttons "Toggle Table Header Row" and "Toggle Table Header Column"How to test
git clone git@github.com:apostrophecms/apostrophe-boilerplate.git && git checkout tiptap-improvements && npm i
npm link
(every other step => in apostrophe-boilerplate)
npm link apostrophe-tiptap-rich-text-widgets
app.js
:lib/modules/apostrophe-pages/views/pages/home.html
:npm start
, login: in homepage, fill the rich-text area