YUI编辑器隐藏标题栏?
是否可以隐藏 YUI 编辑器创建的标题栏? 我想让编辑器在没有标题栏的标签中呈现,并且无法折叠工具栏。 任何建议都非常感激。
Is it possible to hide the title bar created by the YUI editor? I want to have the editor rendered in a tag without the titlebar and unable to collapse the toolbar.
Any suggestions greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用 CSS 隐藏标题栏。
#editor-container 应该是包含 div 的 id。 有关更多示例,请查看 YUI 团队的换肤编辑器示例 。
You can use CSS to hide the titlebar.
#editor-container should be the id of the containing div. For more examples, check out the skinning editor example from the YUI team.
您还可以从配置中删除
titlebar: 'Text Editing Tools',
行,并将 Collapse 设置为 false:You can also remove the
titlebar: 'Text Editing Tools',
line from the configuration, and set collapse to false: