21 lines
831 B
JavaScript
21 lines
831 B
JavaScript
$(document).ready(function() {
|
|
var config = {}
|
|
config.autoGrow_minHeight = 50;
|
|
config.allowedContent = false;
|
|
config.disallowedContent = 'img';
|
|
config.toolbar = [
|
|
{ name: 'clipboard', items: [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ] },
|
|
{ name: 'editing', items: [ 'Find', 'Replace', '-', 'SelectAll', '-', 'Scayt' ] },
|
|
|
|
{ name: 'basicstyles', items: [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'CopyFormatting', 'RemoveFormat' ] },
|
|
'/',
|
|
{ name: 'insert', items: [ 'SpecialChar'] },
|
|
{ name: 'styles', items: [ 'Font' ] },
|
|
{ name: 'colors', items: [ 'TextColor', 'BGColor' ] }
|
|
];
|
|
|
|
var ckeditor_reduce = $('.ckeditor_reduce')
|
|
ckeditor_reduce.each(function(i,v){
|
|
CKEDITOR.replace(v,config);
|
|
})
|
|
}); |