Topic: CKeditor: Add new plugins

Hello,

how can i add new ckeditor plugins: config.extraPlugins = 'youtube';  ?



function cn_snippet_ckeditor($ids = '')
{
    // pre-init
    $CKSmiles = $CKBar = array();
    for ($i = 1; $i <= 8; $i++)
    {
        $ck_bar = getoption("ck_ln{$i}");
        if ($ck_bar) $CKBar[] = '["'.join('","', explode(',', cn_htmlspecialchars($ck_bar))).'"]';
    }

    $smiles = explode(',', getoption('smilies'));
    foreach ($smiles as $smile) $CKSmiles[] = "'$smile.gif'";

    $CKSmiles = join(', ', $CKSmiles);
    $CKBar    = join(', ', $CKBar);

    // show
    echo '<script src="'.getoption('http_script_dir').'/core/ckeditor/ckeditor.js"></script>';
    echo '<script type="text/javascript">'."\n";
    echo "(function() { var settings = {"."\n";        
        echo "skin: 'moono', width: 'auto', height: 350, customConfig: '', language: 'en', entities_latin: false, entities_greek: false, \n";
    echo "toolbar: [ ". hook('settings/CKEDITOR_customize', $CKBar) . " ], \n";

    $add_opt  = array();
    $compound = array();

    $add_opt['filebrowserBrowseUrl'] = PHP_SELF.'?mod=media&opt=inline';
    $add_opt['filebrowserImageBrowseUrl'] = PHP_SELF.'?mod=media&opt=inline';

    $add_opt = hook('settings/CKEDITOR_filemanager', $add_opt);
    foreach ($add_opt as $I => $V) $compound[] = "$I: \"$V\"";

    // Insert updated FileBrowser
    echo join(', ', $compound) . '};' . "\n";

    // Smilies
    echo 'CKEDITOR.config.smiley_path = "'.getoption('http_script_dir').'/skins/emoticons/"; '."\n";
    echo 'CKEDITOR.config.smiley_images = [ '.hook('settings/CKEDITOR_emoticons', $CKSmiles).' ];'."\n";
    echo 'CKEDITOR.config.smiley_descriptions = [];'."\n";
    echo "CKEDITOR.config.allowedContent = true;";
    echo 'CKEDITOR.config.enterMode = CKEDITOR.ENTER_BR;';

    $ids = spsep($ids);
    foreach ($ids as $id) echo "CKEDITOR.replace( '".trim($id)."', ".hook('settings/CKEDITOR_SetsName', 'settings')." );"."\n";

    echo hook('settings/CKEDITOR_Settings');

    echo '})(); </script>';
}

Re: CKeditor: Add new plugins

Try add

    echo "CKEDITOR.config.extraPlugins = 'youtube';";


after

    echo "CKEDITOR.config.allowedContent = true;";
Best regards,
CN Support team

Re: CKeditor: Add new plugins

Try add

    echo "CKEDITOR.config.extraPlugins = 'youtube';";


after

    echo "CKEDITOR.config.allowedContent = true;";

Yes, Thanks works.

Re: CKeditor: Add new plugins

FREE: More on Association Consolidation: Article Generates Strong Reaction <a href="http://printing-in-china.net/office-supplies.html">Office Supplies</a> <a href="http://printing-in-china.net/">printing in china</a> The Top 5 Things I Learned at PRINT 05 ,Navigating Today鈥檚 Hiring Minefield: Who Is Available & Do You Really Want Them? 
Consolidation and global roll-ups continue with a brisk pace inside packaging segment. Multi Packaging Solutions, a portfolio company of Carlyle Group and Madison Dearborn Partners, acquired the North American and Asian print divisions of the AGI-Shorewood Group from Atlas Holdings. The seven acquired plants boost Multi Packaging Solutions&rsquo; global capacity to more than 50 manufacturing plants within the US, Europe and Asia. Before November was out, Multi Packaging Solutions completed another transaction, adding the specialty packaging company Presentation Products Group in Arbroath, Scotland to its roster. ,<a href="http://printing-in-china.net/label-printing.html">Label Printing</a> <a href="http://printing-in-china.net/">print solutions</a> 
printing-in-china.net
http://kiku-bsd.cc.it-hiroshima.ac.jp/c … mment=0750 http://kiku-bsd.cc.it-hiroshima.ac.jp/c … amp;ar=135 http://gzhlb.cn/bbs/home.php?mod=space&uid=109331 http://shougakkou.net/%7Ego/cgi/bbs.cgi … mp;c=00656 http://amu07.sakura.ne.jp/gazou.php?res … mp;ar=0316 http://kiku-bsd.cc.it-hiroshima.ac.jp/c … amp;ar=559 http://lady-tina.com/cgi/livbb/apeboard … p;post=119 http://kiku-bsd.cc.it-hiroshima.ac.jp/c … p;con=0084 http://zewg.net/index.php?topic=982.new#new http://kiku-bsd.cc.it-hiroshima.ac.jp/c … mp;pid=974

Re: CKeditor: Add new plugins

Lack of engineers delaying vital water projects in developing countries <a href="http://watersinfo.org/house/water_softener">water softener system</a> <a href="http://watersinfo.org/house/drinking_dater_filter">water systems</a> Around 30% of our rivers, however, still need improvement, and something in six rivers in urban areas are still classed as 'poor' or 'bad'. ,High levels of lead found in Mississippi capital's water likened to Flint crisis 
Another example is cholera. In days gone by year, this terrifying diarrhoeal disease has managed to get to the headlines again, with deadly outbreaks in Haiti, Ghana and Nigeria. Those stricken with cholera can lose 14 litres (3 gallons) of water using their bodies inside a day. It is very infectious and, inside absence of adequate treatment, death can occur within hours. ,<a href="http://watersinfo.org/house/water_softener">home water filtration</a> <a href="http://watersinfo.org/ind/commercial_water_purifiers">house water filter</a> 
watersinfo.org
http://www.smarthome163.com/space-uid-107022.html http://xmoddstar.com/home.php?mod=space&uid=3084 http://seisan2000.sakura.ne.jp/cgi/boar … ;amp;v=335 http://meyu.org/home.php?mod=space&uid=99047 http://onsa.jp/board/board.cgi?mode=res … con=000070 http://90.x0.com/zbb/wingmulti.cgi?bbsn … amp;ar=412 http://schule-und-danach.de/node/23280? … nt-1193172 http://onsa.jp/board/board.cgi?mode=res … pid=000360 http://seisan2000.sakura.ne.jp/cgi/boar … p;c=000346 http://www.nocontractnovote.org/portal/ … 12.new#new