开发者

Magento remove (show/hide editor) button in admin module

开发者 https://www.devze.com 2023-01-15 17:20 出处:网络
i have a custom admin module, in the edit page i have wysiw开发者_JAVA技巧yg editor, but in the top of it there is a button (show/hide editor), i don\'t want that button, how can i remove it

i have a custom admin module, in the edit page i have wysiw开发者_JAVA技巧yg editor, but in the top of it there is a button (show/hide editor), i don't want that button, how can i remove it thanks


I took a look at the CMS page WSIWYG editor, and the toggle button has an id of togglepage_content, so I was able to hide it with a css rule like this:

#togglepage_content { display:none; }

Take a look at your button, hopefully it has an ID? If it has the same as another page (the one posted above, for instance), use the class assigned to the body for each action to differentiate further:

.adminhtml-cms-page-edit #togglepage_content { display:none; }

Hope that helps!

Thanks, Joe

0

精彩评论

暂无评论...
验证码 换一张
取 消