You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
639 B
23 lines
639 B
//= require ckeditor/config |
|
//= require ckeditor/init |
|
|
|
$('.i-ckeditor').each(function(){ |
|
var a, b; |
|
a = $(this), b = a.attr('id') || ('ckeditor' + (new Date).getTime()) |
|
//<![CDATA[ |
|
if (typeof CKEDITOR != 'undefined') { CKEDITOR.replace(b); } |
|
//]]> |
|
}) |
|
|
|
$('.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); } |
|
})
|
|
|