Какой редактор? Если используете "ckeditor" то отредактируйте файл конфига
Конфиг лежит тут /admin/view/javascript/ckeditor/config.js
Добавьте в конфиг следующий код после строки
CKEDITOR.editorConfig = function( config )
CKEDITOR.config.indentClasses = ["ul-grey", "ul-red", "text-red", "ul-content-red", "circle", "style-none", "decimal", "paragraph-portfolio-top", "ul-portfolio-top", "url-portfolio-top", "text-grey"];
CKEDITOR.config.protectedSource.push(/<(style)[^>]*>.*</style>/ig);
CKEDITOR.config.protectedSource.push(/<(script)[^>]*>.*</script>/ig);// разрешить теги <script>
CKEDITOR.config.protectedSource.push(/<?[sS]*??>/g);// разрешить php-код
CKEDITOR.config.protectedSource.push(/<!--dev-->[sS]*<!--/dev-->/g);
CKEDITOR.config.allowedContent = true; /* all tags */
config.allowedContent = true;
Или воспользуйтесь готовым конфигом
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
/*
config.filebrowserBrowseUrl = 'index.php?route=common/filemanager';
config.filebrowserImageBrowseUrl = 'index.php?route=common/filemanager';
config.filebrowserFlashBrowseUrl = 'index.php?route=common/filemanager';
config.filebrowserUploadUrl = 'index.php?route=common/filemanager';
config.filebrowserImageUploadUrl = 'index.php?route=common/filemanager';
config.filebrowserFlashUploadUrl = 'index.php?route=common/filemanager';
*/
CKEDITOR.config.indentClasses = ["ul-grey", "ul-red", "text-red", "ul-content-red", "circle", "style-none", "decimal", "paragraph-portfolio-top", "ul-portfolio-top", "url-portfolio-top", "text-grey"];
CKEDITOR.config.protectedSource.push(/<(style)[^>]*>.*</style>/ig);
CKEDITOR.config.protectedSource.push(/<(script)[^>]*>.*</script>/ig);// разрешить теги <script>
CKEDITOR.config.protectedSource.push(/<?[sS]*??>/g);// разрешить php-код
CKEDITOR.config.protectedSource.push(/<!--dev-->[sS]*<!--/dev-->/g);
CKEDITOR.config.allowedContent = true; /* all tags */
config.allowedContent = true;
config.filebrowserWindowWidth = '800';
config.filebrowserWindowHeight = '500';
config.resize_enabled = false;
config.htmlEncodeOutput = false;
config.entities = false;
config.toolbar = 'Custom';
config.toolbar_Custom = [
['Source'],
['Maximize'],
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
['NumberedList','BulletedList','-','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['SpecialChar'],
'/',
['Undo','Redo'],
['Font','FontSize'],
['TextColor','BGColor'],
['Link','Unlink','Anchor'],
['Image','Table','HorizontalRule']
];
config.toolbar_Full = [
['Source','-','Save','NewPage','Preview','-','Templates'],
['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
'/',
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Link','Unlink','Anchor'],
['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
'/',
['Styles','Format','Font','FontSize'],
['TextColor','BGColor'],
['Maximize', 'ShowBlocks','-','About']
];
};