Changeset 2761:6b76144ca48b
- Timestamp:
- 10/26/14 10:10:53 (9 years ago)
- Branch:
- default
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/post.php
r2740 r2761 65 65 foreach ($core_formaters as $editor => $formats) { 66 66 foreach ($formats as $format) { 67 68 67 $available_formats[$format] = $format; 68 } 69 69 } 70 70 … … 377 377 $admin_post_behavior = ''; 378 378 if ($post_editor && !empty($post_editor[$post_format])) { 379 $admin_post_behavior = $core->callBehavior('adminPostEditor', $post_editor[$post_format] );379 $admin_post_behavior = $core->callBehavior('adminPostEditor', $post_editor[$post_format], 'post'); 380 380 } 381 381 … … 384 384 dcPage::jsModal(). 385 385 dcPage::jsMetaEditor(). 386 386 $admin_post_behavior. 387 387 dcPage::jsLoad('js/_post.js'). 388 388 dcPage::jsConfirmClose('entry-form','comment-form'). -
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 -
plugins/tags/_admin.php
r2751 r2761 40 40 $core->addBehavior('adminPageHelpBlock', array('tagsBehaviors', 'adminPageHelpBlock')); 41 41 42 //$core->addBehavior('ckeditorExtraPlugins', array('tagsBehaviors', 'ckeditorExtraPlugins'));42 $core->addBehavior('ckeditorExtraPlugins', array('tagsBehaviors', 'ckeditorExtraPlugins')); 43 43 44 44 # BEHAVIORS 45 45 class tagsBehaviors 46 46 { 47 public static function ckeditorExtraPlugins(ArrayObject $extraPlugins )47 public static function ckeditorExtraPlugins(ArrayObject $extraPlugins, $context) 48 48 { 49 49 global $core; 50 50 51 if ($context!='post') { 52 return; 53 } 51 54 $extraPlugins[] = array( 52 55 'name' => 'dctags',
Note: See TracChangeset
for help on using the changeset viewer.