How to remove the eye-slash button in preview mode?
你好@artf!我用 GrapesJS 创建了一个网页构建器。 我想在预览模式下移除眼部斜视按钮,改用返回按钮。怎么做?请帮帮我。
robsonsobral
>我建议用[extending](https://grapesjs.com/docs/modules/Commands.html#extending)原始的[预览](https://github.com/artf/grapesjs/blob/dev/src/commands/view/Preview.js)命令感谢你的回复@artf。有没有关于扩展现有命令的文档或示例代码? https://grapesjs.com/docs/modules/Commands.html#ex...
collindutter
@niveth09这里是扩展预览命令(不含眼睛按钮)的代码:
artf
我建议用[extending](https://grapesjs.com/docs/modules/Commands.html#extending)原始的[Preview](https://github.com/artf/grapesjs/blob/dev/src/commands/view/Preview.js)命令