I am struggling to disable the sidebar on the Aloha Editor. I have tried implementing the code below, but it doesn't seem to work for me:
Aloha.settings = {
sidebar: { disabled: true }
};
When I add this code after calling aloha()
, nothing changes and the sidebar is still visible. If I add it before calling aloha()
, I encounter the following error:
Uncaught TypeError: Cannot read property 'getContents' of undefined
All of these issues are occurring within Aloha.ready
and even moving the code above my call to Aloha.ready
does not resolve them.
If it helps, below are the files that I am loading in the <head>
:
<script src="http://cdn.aloha-editor.org/latest/lib/require.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="http://cdn.aloha-editor.org/latest/lib/aloha.js" data-aloha-plugins="common/ui, common/format, common/list, common/link, common/highlighteditables, common/horizontalruler, common/undo, common/paste"></script>
<link href="http://cdn.aloha-editor.org/latest/css/aloha.css" rel="stylesheet" type="text/css" />
(As a temporary fix, I am currently adding some CSS, which doesn't feel like the best solution. I would prefer a more elegant approach.)