/var/www/vhosts/ihelp.ro/httpdocs/vendor/mirko-pagliai/me-tools/webroot/js
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/mirko-pagliai/me-tools/webroot/js/ckeditor_init.php (5214B)
$(function () {
$('.editor.wysiwyg').each(function () {
CKEDITOR.on('dialogDefinition', function (ev) {
var dialogName = ev.data.name;
var dialogDefinition = ev.data.definition;
if (dialogName == 'iframe') {
var advanced = dialogDefinition.getContents('advanced');
advanced.get('advCSSClasses')['default'] = 'embed-responsive embed-responsive-item'; //Default iframe classes
}
if (dialogName == 'table') {
var advanced = dialogDefinition.getContents('advanced');
var info = dialogDefinition.getContents('info');
advanced.get('advCSSClasses')['default'] = 'table table-responsive'; //Default table classes
info.get('txtWidth')['default'] = '100%'; //Default width
info.get('txtBorder')['default'] = '0'; //Default border
info.get('txtCellSpace')['default'] = '0'; //Default cell spacing
info.get('txtCellPad')['default'] = '0'; //Default cell padding
}
});
CKEDITOR.replace(this.id, {
autoGrow_bottomSpace: 0,
autoGrow_maxHeight: 550,
autoGrow_onStartup: true,
bodyClass: 'article p-3',
contentsCss: [
/**
* These are the css files that will be loaded into the editor.
* In this way, the style applied within the editor will be the
* style actually used by the post when it will be published
*/
'= BASEDIR ?>/vendor/bootstrap/css/bootstrap.min.css',
'= BASEDIR ?>/me_cms/css/layout.css',
'= BASEDIR ?>/me_cms/css/contents.css',
],
disableNativeSpellChecker: false,
filebrowserUploadMethod: 'form',
fontSize_sizes: '10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;30/30px;',
height: 375,
image2_alignClasses: [ 'float-left', 'text-center', 'float-right' ],
insertpre_class: false,
removeButtons: 'Font',
removeDialogTabs: false,
removePlugins: 'divarea',
tabSpaces: 4,
toolbarCanCollapse: true,
toolbarGroups: [
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
{ name: 'links' },
{ name: 'insert' },
{ name: 'forms' },
{ name: 'tools' },
{ name: 'others' },
'/',
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
{ name: 'styles' },
{ name: 'colors' },
{ name: 'about' }
],
});
});
});