2020-02-11 13:12:54 +00:00
|
|
|
$(document).ready(function() {
|
|
|
|
var config = {}
|
|
|
|
config.autoGrow_minHeight = 50;
|
2020-02-22 05:55:25 +00:00
|
|
|
config.allowedContent = false;
|
|
|
|
config.disallowedContent = 'img';
|
2020-02-11 13:12:54 +00:00
|
|
|
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);
|
|
|
|
})
|
|
|
|
});
|