我跟随你的导游有关人物:http://apostrophecms.org/docs/tutorials/getting-started/reusable-content-with-pieces.html
这是传记定义:
{
name: 'body',
label: 'Biography',
type: 'area',
options: {
widgets: {
'apostrophe-rich-text': {
controls: ['Bold', 'Italic', 'Link', 'Unlink']
},
'apostrophe-images': { }
}
}
}
因此,我认为我可以传记传记。但是,既没有在模态对话框中,也没有在人物页面中我看到工具栏来设置文本样式。
谢谢你的帮助!
该指南有一个错字.. controls
属性应该是toolbar
{
name: 'body',
label: 'Biography',
type: 'area',
options: {
widgets: {
'apostrophe-rich-text': {
toolbar: ['Bold', 'Italic', 'Link', 'Unlink']
},
'apostrophe-images': { }
}
}
}
我会修复文档,谢谢!