apostrophecms / apostrophe-tiptap-rich-text-widgets

Wrapper allowing the use of the tiptap vue-based rich-text editor for Apostrophe 2.x. In 3.x it will be standard equipment.
6 stars 1 forks source link

Tiptap improvements #16

Closed falkodev closed 4 years ago

falkodev commented 4 years ago

Table improvements

Content

table

How to test

(every other step => in apostrophe-boilerplate)

modules: {
  ...
  'apostrophe-tiptap-rich-text-widgets': {},
}
{{
      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)'
              }
            ]
          }
        }
      })
    }}