//= require ckeditor/config //= require ckeditor/init $('.i-ckeditor').each(function(){ var a, b; a = $(this), b = a.attr('id') || ('ckeditor' + (new Date).getTime()) // }) $('.i-ckeditor-readonly').each(function(){ var a, b; a = $(this), b = a.attr('id') || ('ckeditor' + (new Date).getTime()) var options = {}; options.readOnly = true options.toolbar = [ { name: 'document', items : [ 'Source', 'Maximize' ] } ] options.resize_enabled = false; if (typeof CKEDITOR != 'undefined') { editor = CKEDITOR.replace(b, options); } })