How to disable Aloha editor toolbar?

Is there a way to disable the Aloha ExtJS toolbar in the same way as the sidebar?

Aloha.settings = modules: ['aloha', 'aloha/jquery'] editables: '.editable' jQuery: $ sidebar: disabled: true toolbar: disabled: true # does not work 

enter image description here

+6
source share
3 answers

Mark item 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(); } }); }); 
+2
source

You can just hide it with css, for example:

 div.aloha-toolbar { display: none !important; } 
+4
source

There is no easy way to disable the floating menu. You must disable it by editing the source code, which you can do by deleting a couple of lines. If you comment on line 1207-1210 , a floating menu will not be displayed.

Hope this helps!

+2
source

Source: https://habr.com/ru/post/915849/


All Articles