Форумы / National / Russian / Модули и плагины / Вставка видео

Замена устаревшего метода вставки видео с видехостингов

Stalker
#37122 27.02.2013 21:19

Закинул в папку плагинов редактора, но подключить не смог. Вот конфиг редактора:

/* CKEditor toolbar sets for Cotonti */

CKEDITOR.editorConfig = function( config )
{
    config.toolbar = 'Full';
	config.extraPlugins = 'more','[ oembed ]';
	config.oembed_maxWidth = '560';
    config.oembed_maxHeight = '315';
	config.oembed_WrapperClass = 'embededContent';

	config.toolbar_Full =
	[
		['Source','-','Templates'],
		['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
		['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
		['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe'],
		['Maximize', 'ShowBlocks','-','About'],
		'/',
		['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
		['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'],
		['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
		['Link','Unlink','Anchor','More'],
		['Styles','Format'],
		['TextColor','BGColor','oembed']
	];

	config.toolbar_Medium = [
		['Bold','Italic','Underline','Strike'],
		['NumberedList','BulletedList','-','Blockquote'],
		['Link','Unlink','Anchor','Smiley'],
		['TextColor','BGColor'],
		['Cut','Copy','Paste','PasteText','Scayt'],
		['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat','oembed'],['Source']
	];

	config.toolbar_Basic =
	[
		['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', 'Image','-', 'Link', 'Unlink','-','oembed']
	];
};

Что сделано неправильно?