admin管理员组文章数量:1319013
Is there a way to disable Aloha's ExtJS toolbar in the same way as sidebar?
Aloha.settings =
modules: ['aloha', 'aloha/jquery']
editables: '.editable'
jQuery: $
sidebar:
disabled: true
toolbar:
disabled: true # does not work
Is there a way to disable Aloha's ExtJS toolbar in the same way as sidebar?
Aloha.settings =
modules: ['aloha', 'aloha/jquery']
editables: '.editable'
jQuery: $
sidebar:
disabled: true
toolbar:
disabled: true # does not work
Share
Improve this question
edited Mar 31, 2016 at 22:45
mateusmaso
asked May 15, 2012 at 20:11
mateusmasomateusmaso
8,4736 gold badges42 silver badges54 bronze badges
3 Answers
Reset to default 4You can just hide it with css such as:
div.aloha-toolbar {
display: none !important;
}
Mark element with class
<div class="editable notoolbar"></div>
Use event:
Aloha.ready(function () {
var $ = Aloha.jQuery;
Aloha.bind('aloha-editable-activated', function () {
if ($(Aloha.activeEditable.obj[0]).hasClass("notoolbar")) {
$(".aloha-toolbar").hide();
}
});
});
There is no easy way to disable the floating menu. You have to disable it by editing the source code you can do this by removing a couple lines. If you ment out line 1207-1210 the floating menu won't show up.
Hope this helps!
本文标签: javascriptHow to disable Aloha Editor toolbarStack Overflow
版权声明:本文标题:javascript - How to disable Aloha Editor toolbar? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742051984a2418103.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论