重现问题的方法:
添加一个简单的 Singleton 小部件,如下所示:
{{ apos.singleton(data.page, 'textBlock', 'apostrophe-rich-text', {
toolbar: [ 'Styles', 'Bold', 'Italic' ],
styles: [
{ name: 'Title', element: 'h3' },
{ name: 'Hero Title', element: 'h1' },
{ name: 'Another Title', element: 'h2' }
]
}) }}
更改文本块的样式,刷新页面并观察到只有 h3 样式被即时保存,这是应该的。H1 和 H2 样式已应用但未保存。
可能是我在 Windows 上运行 Apostrophe 还是我使用 mongod 和--smallfiles?
项目文件位于:https ://github.com/newdesignideas/veebidisainer-koduleht.git