keystonejs/keystone-classic

Markdown field ignores `hiddenButtons` of `toolbarOptions` property

Open

#4,378 创建于 2017年7月2日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)JavaScript (14,656 star) (2,288 fork)batch import
bughelp wanted

描述

Expected behavior

toolbarOptions.hiddenButtons String - Comma separated list of buttons to hide.

{ type: Types.Markdown, toolbarOptions: { hiddenButtons: 'H1,H6,Code' } }

This should make H1, H2 and Code buttons to hide from the toolbar according to: http://keystonejs.com/docs/database/#fieldtypes-markdown

Actual/Current behavior

Buttons H1, H2 and Code are still in the toolbar, toolbarOptions.hiddenButtons does nothing.

Environment

Software Version
Keystone 4.0.0
Node 6.10.3, 7.10.0, 8.1.1

贡献者指南

Markdown field ignores `hiddenButtons` of `toolbarOptions` property · keystonejs/keystone-classic#4378 | Good First Issue