0

{{ apos.area(data.page, 'body', { widgets: { 'apostrophe-images': { size: 'full' }, 'apostrophe-rich-text': { toolbar: [ 'Styles', 'Bold ','斜体','链接','取消链接','表格'],样式:[{名称:'标题',元素:'h3'},{名称:'段落',元素:'p'}, { 名称:'Listitems',元素:'li' } ] } } }) }}

4

1 回答 1

0

将列表添加到要添加的富文本小部件'NumberedList''BulletedList'配置中的工具栏数组。

你的代码看起来像

{{ apos.area(data.page, 'body', { 
  widgets: { 
    'apostrophe-images': { size: 'full' },
    'apostrophe-rich-text': { 
      toolbar: [ 'Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Table', 'NumberedList', 'BulletedList' ], 
      styles: [
        { name: 'Heading', element: 'h3' },
        { name: 'Paragraph', element: 'p' }
      ] 
    }
  }
}) }}
于 2017-05-22T12:15:18.710 回答