在自定義內容類型(員工)中,我有一個正文字段。撇號cms - 富文本預覽不能在管理視圖中工作
在lib\modules\employees\index.js
addFields: [
{
name: 'body',
label: 'Beskrivelse',
type: 'area',
options: {
widgets: {
'apostrophe-rich-text': {
toolbar: ['Bold', 'Italic', 'Link', 'Unlink']
}
}
}
}
]
而且在lib\modules\employees-widgets\views\widget.html
{{ apos.singleton(piece, 'body', 'apostrophe-rich-text', {
toolbar: [ 'Bold', 'Italic', 'Link', 'Unlink' ]
})
}}
編輯直接在頁面上顯示了工具欄和預覽豐富的文本字段。但在管理視圖中,工具欄顯示,但預覽根本不起作用。看看波紋管鏈接的圖像:
It looks like this when editing on the page
It looks like this in the admin view