Dotclear


Ignore:
Timestamp:
10/26/14 10:10:53 (11 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

CKEditor can now load external plugins such as tags, series,...
Closes #1992

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/dcCKEditor/inc/dc.ckeditor.behaviors.php

    r2749 r2761  
    1616    protected static $config_url = 'plugin.php?p=dcCKEditor&config=1'; 
    1717 
    18     public static function adminPostEditor($editor='') { 
     18    public static function adminPostEditor($editor='',$context='') { 
    1919        if (empty($editor) || $editor!='dcCKEditor') { return;} 
     20 
     21        $config_js = self::$config_url; 
     22        if (!empty($context)) { 
     23            $config_js .= '&context='.$context; 
     24        } 
    2025 
    2126        return 
     
    3944            dcPage::jsLoad(self::$p_url.'/js/ckeditor/ckeditor.js'). 
    4045            dcPage::jsLoad(self::$p_url.'/js/ckeditor/adapters/jquery.js'). 
    41             dcPage::jsLoad(self::$config_url); 
     46            dcPage::jsLoad($config_js); 
    4247     } 
    4348 
Note: See TracChangeset for help on using the changeset viewer.

Sites map