/**
 * @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights
 *          reserved. For licensing, see LICENSE.md or
 *          http://ckeditor.com/license
 */

CKEDITOR.editorConfig = function (config) {
// config.language = 'de';
// Bootstrap soll eingebunden werden
    config.contentsCss = [CKEDITOR.basePath + 'contents.css',
        '//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css']
    config.ShiftEnterMode = 'p';
    config.height = '300px';
    if (window.location.href.indexOf("admin/") != -1) {
        config.filebrowserBrowseUrl = 'kcfinder/browse.php?type=files';
        config.filebrowserImageBrowseUrl = 'kcfinder/browse.php?type=images';
        config.filebrowserFlashBrowseUrl = 'kcfinder/browse.php?type=flash';
        config.filebrowserUploadUrl = 'kcfinder/upload.php?type=files';
        config.filebrowserImageUploadUrl = 'kcfinder/upload.php?type=images';
        config.filebrowserFlashUploadUrl = 'kcfinder/upload.php?type=flash';
    } else {
        config.filebrowserBrowseUrl = 'admin/kcfinder/browse.php?type=files';
        config.filebrowserImageBrowseUrl = 'admin/kcfinder/browse.php?type=images';
        config.filebrowserFlashBrowseUrl = 'admin/kcfinder/browse.php?type=flash';
        config.filebrowserUploadUrl = 'admin/kcfinder/upload.php?type=files';
        config.filebrowserImageUploadUrl = 'admin/kcfinder/upload.php?type=images';
        config.filebrowserFlashUploadUrl = 'admin/kcfinder/upload.php?type=flash';
    }
    config.entities_latin = false;
    config.uiColor = '#d1d8d0';

    config.removePlugins = "link,newpage,templates,preview,print,save,language,autoembed";
    // disable contextmenu on touchy things
    // to make it possible to select text in editor
    if (isTouchDevice()) {
        console.log("CKEditor: This is a touchscreen device. Disable Context Menu")
        config.removePlugins += ',colordialog,liststyle,tabletools,contextmenu,';
    } else
    {
        console.log("CKEditor: Can't touch this");
    }
    config.autoGrow_onStartup = false;
    config.extraPlugins = 'adv_link,font';
};

@@ -531,16 +531,17 @@
 in/%22) !=
+=
  -1) %7B%0A 
@@ -1868,16 +1868,94 @@
  Menu%22)%0A
+        // We need also to disable plugins which are dependent on contextmenu%0A
         

comment code