ckeditor', { height: (h-200) + 'px', allowedContent: true, enterMode: CKEDITOR.ENTER_DIV, shiftEnterMode: CKEDITOR.ENTER_BR, disableNativeSpellChecker: false, language: '<?php echo $loc; ?> ', customConfig: '', contentsCss: ['<?php echo get_javascript_url('ckeditor/contents.css') . '?rev=' . product_version_revision(); ?> ', '<?php echo get_stylesheet_url('og/ckeditor_override.css') . '?rev=' . product_version_revision(); ?> '], toolbar: [ [ 'Source','-','Font','FontSize','-','Bold','Italic','Underline','-', 'SpellChecker', 'Scayt','-', 'Link','Unlink','-', 'TextColor','BGColor','RemoveFormat','-', 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock' ] ], on: { instanceReady: function(ev) { og.adjustCkEditorArea('<?php echo $genid; ?> ');
/** * Add external JS to page * * @access public * @param string $src URL of external JS file * @return null */ function add_javascript_to_page($src) { $revision = product_version_revision(); if ($revision != "") { $parsed_url = parse_url($src); $src .= (isset($parsed_url['query']) ? "&" : "?") . "rev=" . $revision; } $page = PageDescription::instance(); $page->addJavascript($src); }
/** * The passed script will be loaded automatically before displaying content * @param $url */ function require_javascript($url, $plugin = null) { $revision = product_version_revision(); if($revision != "") { $revision = "?rev=".$revision; } if (is_ajax_request()) { AjaxResponse::instance()->addScript($url.$revision, $plugin); } }
language: '<?php echo $loc ?>', customConfig: '', toolbar: [ ['Source','-','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt','-', 'Undo','Redo','-','Find','Replace','-','SelectAll', '-', 'Format','Font','FontSize'], '/', ['Bold','Italic','Underline','Strike','-','Subscript','Superscript','-', 'NumberedList','BulletedList','-','Outdent','Indent','Blockquote','-', 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-', 'Link','Unlink', 'Anchor', '-','Maximize','-', 'Image','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','-', 'TextColor','BGColor','RemoveFormat'] ], skin: 'kama', contentsCss: '<?php echo get_javascript_url("ckeditor/contents.css")."?rev=".product_version_revision()?>', keystrokes: [ [ CKEDITOR.ALT + 121 /*F10*/, 'toolbarFocus' ], [ CKEDITOR.ALT + 122 /*F11*/, 'elementsPathFocus' ], [ CKEDITOR.SHIFT + 121 /*F10*/, 'contextMenu' ], [ CKEDITOR.CTRL + 90 /*Z*/, 'undo' ], [ CKEDITOR.CTRL + 89 /*Y*/, 'redo' ], [ CKEDITOR.CTRL + CKEDITOR.SHIFT + 90 /*Z*/, 'redo' ], [ CKEDITOR.CTRL + 76 /*L*/, 'link' ], [ CKEDITOR.CTRL + 66 /*B*/, 'bold' ], [ CKEDITOR.CTRL + 73 /*I*/, 'italic' ], [ CKEDITOR.CTRL + 85 /*U*/, 'underline' ],