Sha256: 9d1c40f05460bb4340ca2414147ad5dbb90fb073ea27d366ba012acffa1ccca9

Contents?: true

Size: 857 Bytes

Versions: 6

Compression:

Stored size: 857 Bytes

Contents

CKEDITOR.editorConfig = function (config) {
    config.allowedContent = true;
    config.removeFormatTags = "";
    config.fillEmptyBlocks = false;
    config.protectedSource.push(/<r:([\S]+).*<\/r:\1>/g);
    config.protectedSource.push(/<r:[^>/]*\/>/g);
    //let paste from word be available
    // config.forcePasteAsPlainText = false;
    // if you want to remove clipboard, you have to remove all of these:
    // clipboard, pastetext, pastefromword
    config.removePlugins = "save, newpage, preview, print, templates, forms, flash, smiley, language, pagebreak, iframe, bidi";

    var startupMode = Cookies.get('ckeditor.startupMode');
    if (startupMode == 'source' || startupMode == 'wysiwyg') {
        config.startupMode = startupMode;
    }

    this.on('mode', function () {
        Cookies.set('ckeditor.startupMode', this.mode);
    })

};

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
trusty-cms-6.3.1 app/assets/javascripts/ckeditor/config.js
trusty-cms-7.0.2 app/assets/javascripts/ckeditor/config.js
trusty-cms-7.0.1 app/assets/javascripts/ckeditor/config.js
trusty-cms-7.0.0 app/assets/javascripts/ckeditor/config.js
trusty-cms-6.3 app/assets/javascripts/ckeditor/config.js
trusty-cms-6.2.1 app/assets/javascripts/ckeditor/config.js