CKEditor - deactivated/hidden as default setting

Does anyone know a way either with a tool or hard coding  where I can set the CKeditor as deactivated as default (on login)?

The issue is when using mobile and small laptop screens the editor takes a lot of screen space, and having just a small standard comments box is fine, then it's up to the user to toggle the edit on/off if they want it, but bcs its on as default it looks a little overwhelming to the non-tech user.

thanks for any help you can give!

Rich

  • Thanks, unfortunately this a blanket disable for all mobile devices. I rather wanted longtext as default and the option to switch to rich text if required.
     
    This change works for me now.
     
    line 44 in ...ckeditor/views/default/elgg/ckeditor.js
     
    rem out the following:
    //              if (!visual) {
                    elggCKEditor.init(this, visual);
    //              } else {
    //              $(this).ckeditor(elggCKEditor.init, config);
    //              }
     
    and change the menu text from start.php to compensate
     
            $items[] = ElggMenuItem::factory(array(
                    'name' => 'ckeditor_toggler',
                    'link_class' => 'ckeditor-toggle-editor elgg-longtext-control hidden',
                    'href' => "#{$id}",
    //    'text' => elgg_echo('ckeditor:html'),
    'text' => elgg_echo('ckeditor:visual'),