Changeset 2761:6b76144ca48b for plugins/dcCKEditor
- Timestamp:
- 10/26/14 10:10:53 (11 years ago)
- Branch:
- default
- Location:
- plugins/dcCKEditor
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dcCKEditor/_post_config.php
r2751 r2761 13 13 if (!defined('DC_CONTEXT_ADMIN')) { return; } 14 14 header('Content-type: text/javascript'); 15 if (!empty($_GET['context'])) { 16 $context = $_GET['context']; 17 } else { 18 $context = ''; 19 } 15 20 $__extraPlugins = new ArrayObject(); 16 $core->callBehavior('ckeditorExtraPlugins',$__extraPlugins );21 $core->callBehavior('ckeditorExtraPlugins',$__extraPlugins,$context); 17 22 $extraPlugins = $__extraPlugins->getArrayCopy(); 18 23 ?> -
plugins/dcCKEditor/inc/dc.ckeditor.behaviors.php
r2749 r2761 16 16 protected static $config_url = 'plugin.php?p=dcCKEditor&config=1'; 17 17 18 public static function adminPostEditor($editor='' ) {18 public static function adminPostEditor($editor='',$context='') { 19 19 if (empty($editor) || $editor!='dcCKEditor') { return;} 20 21 $config_js = self::$config_url; 22 if (!empty($context)) { 23 $config_js .= '&context='.$context; 24 } 20 25 21 26 return … … 39 44 dcPage::jsLoad(self::$p_url.'/js/ckeditor/ckeditor.js'). 40 45 dcPage::jsLoad(self::$p_url.'/js/ckeditor/adapters/jquery.js'). 41 dcPage::jsLoad( self::$config_url);46 dcPage::jsLoad($config_js); 42 47 } 43 48 -
plugins/dcCKEditor/index.php
r2738 r2761 27 27 if (!empty($_GET['config'])) { 28 28 // text/javascript response stop stream just after including file 29 include_once(dirname(__FILE__).'/_post_config.php'); 29 include_once(dirname(__FILE__).'/_post_config.php'); 30 30 exit(); 31 } else { 31 } else { 32 32 include_once(dirname(__FILE__).'/inc/_config.php'); 33 33 } 34
Note: See TracChangeset
for help on using the changeset viewer.