77 lines
2.5 KiB
Smarty
77 lines
2.5 KiB
Smarty
|
|
|
||
|
|
|
||
|
|
<script type="text/javascript" src="design/js/ckeditor/ckeditor.js"></script>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
var tinyMCE = {
|
||
|
|
get:function(){}
|
||
|
|
}
|
||
|
|
$(function(){
|
||
|
|
$('.editor_large, .editor_small').each(function(){
|
||
|
|
var name = $(this).attr('name');
|
||
|
|
CKEDITOR.replace( name, {
|
||
|
|
height:400
|
||
|
|
});
|
||
|
|
});
|
||
|
|
/*
|
||
|
|
CKEDITOR.replace( 'body', {
|
||
|
|
height:400
|
||
|
|
});
|
||
|
|
CKEDITOR.replace( 'annotation', {
|
||
|
|
height:400
|
||
|
|
});
|
||
|
|
*/
|
||
|
|
});
|
||
|
|
</script>
|
||
|
|
|
||
|
|
{*
|
||
|
|
|
||
|
|
<script language="javascript" type="text/javascript" src="design/js/tiny_mce/plugins/smimage/smplugins.js"></script>
|
||
|
|
<script language="javascript" type="text/javascript" src="design/js/tiny_mce/tiny_mce.js"></script>
|
||
|
|
<script language="javascript">
|
||
|
|
|
||
|
|
tinyMCE.init({literal}{{/literal}
|
||
|
|
// General options
|
||
|
|
mode : "specific_textareas",
|
||
|
|
editor_selector : /editor/,
|
||
|
|
theme : "advanced",
|
||
|
|
language : "ru",
|
||
|
|
theme_advanced_path : false,
|
||
|
|
apply_source_formatting : false,
|
||
|
|
plugins : "jaretypograph,smimage,smeditimage,smexplorer,safari,spellchecker,style,table,save,advimage,advlink,autolink,inlinepopups,media,contextmenu,paste,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras",
|
||
|
|
relative_urls : false,
|
||
|
|
remove_script_host : false,
|
||
|
|
convert_urls : true,
|
||
|
|
verify_html: false,
|
||
|
|
remove_linebreaks : false,
|
||
|
|
content_css :"../design/{$settings->theme}/css/style.css",
|
||
|
|
spellchecker_languages : "+Russian=ru,+English=en",
|
||
|
|
valid_elements : "*[*]",
|
||
|
|
extended_valid_elements : "*[*],script[charset|defer|language|src|type],style",
|
||
|
|
|
||
|
|
// Theme options
|
||
|
|
theme_advanced_buttons1 : "save,newdocument,|,paste,pastetext,pasteword,|,undo,redo,|,bold,italic,underline,strikethrough,|,sub,sup,|,bullist,numlist,|,justifyleft,justifycenter,justifyright,justifyfull,|,forecolor,backcolor,|,styleselect,formatselect,fontselect,fontsizeselect",
|
||
|
|
theme_advanced_buttons2 : "tablecontrols,|,link,unlink,anchor,smimage,smeditimage,smexplorer,charmap,nonbreaking,|,styleprops,attribs,|,jaretypograph,removeformat,cleanup,spellchecker,|,visualaid,fullscreen,code",
|
||
|
|
theme_advanced_buttons3 : "",
|
||
|
|
theme_advanced_buttons4 : "",
|
||
|
|
theme_advanced_toolbar_location : "top",
|
||
|
|
theme_advanced_toolbar_align : "left",
|
||
|
|
theme_advanced_statusbar_location : "bottom",
|
||
|
|
theme_advanced_resizing : true,
|
||
|
|
|
||
|
|
file_browser_callback : "SMPlugins",
|
||
|
|
plugin_smexplorer_directory : "{$config->subfolder}files/uploads",
|
||
|
|
plugin_smimage_directory : "{$config->subfolder}files/uploads",
|
||
|
|
|
||
|
|
setup : function(ed) {
|
||
|
|
if(typeof set_meta == 'function')
|
||
|
|
{
|
||
|
|
ed.onKeyUp.add(set_meta);
|
||
|
|
ed.onChange.add(set_meta);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
{literal}}{/literal});
|
||
|
|
|
||
|
|
</script>
|
||
|
|
*}
|