Sha256: dec8716a2bc942fbf33f072bd1a87876e9f265bb72895910a58b20a7d0e97e1d

Contents?: true

Size: 740 Bytes

Versions: 69

Compression:

Stored size: 740 Bytes

Contents

CKEDITOR.editorConfig = function( config ) {
  config.allowedContent = true;
  config.removeFormatTags = "";
  config.protectedSource.push(/<r:([\S]+).*<\/r:\1>/g);
  config.protectedSource.push(/<r:[^>\/]*\/>/g);

  config.forcePasteAsPlainText = true;
  // 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 = $.cookie('ckeditor.startupMode');
  if (startupMode == 'source' || startupMode == 'wysiwyg' ) {
    config.startupMode = startupMode;
  }

  this.on('mode', function(){
    $.cookie('ckeditor.startupMode', this.mode);
  })

};

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
trusty-cms-2.0.4.pre.beta app/assets/javascripts/ckeditor/config.js
trusty-cms-2.0.3.pre.beta app/assets/javascripts/ckeditor/config.js
trusty-cms-2.0.2.pre.beta app/assets/javascripts/ckeditor/config.js
trusty-cms-2.0.1.pre.beta app/assets/javascripts/ckeditor/config.js
trusty-cms-2.0.0.pre.beta app/assets/javascripts/ckeditor/config.js
trusty-cms-1.2.29 app/assets/javascripts/ckeditor/config.js
trusty-cms-1.2.28 app/assets/javascripts/ckeditor/config.js
trusty-cms-1.1.28 app/assets/javascripts/ckeditor/config.js
trusty-cms-1.1.27 app/assets/javascripts/ckeditor/config.js