19 lines
742 B
JavaScript
19 lines
742 B
JavaScript
$(document).ready(function() {
|
|
var config = {}
|
|
config.autoGrow_minHeight = 50;
|
|
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);
|
|
})
|
|
}); |