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

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&amp;uid=3084 http://seisan2000.sakura.ne.jp/cgi/boar … ;amp;v=335 http://meyu.org/home.php?mod=space&amp;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