Hallöchen, dafür brauchst du bissel was.
1. Geh auf den folgenden Link und lad dir das Youtube Packet runter:
ckeditor.com/addon/youtube
2. öffne dein webspace, also da wo ilch liegt. gehe dann in das Verzeichniss vendor/ckeditor/ckeditor/plughins -> dort kopierst du den youtube Ordner aus der Zipdatei rein.
3. gehe in das Hauptverzeichnis des ckleditors, öffne die config.js
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here.
// For complete reference see:
// http://docs.ckeditor.com/#!/api/CKEDITOR.config
config.extraPlugins = 'youtube';
// The toolbar groups arrangement, optimized for two toolbar rows.
config.toolbarGroups = [
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
{ name: 'links' },
{ name: 'insert' },
{ name: 'forms' },
{ name: 'tools' },
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
{ name: 'others' },
'/',
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
{ name: 'styles' },
{ name: 'colors' },
{ name: 'youtube' },
{ name: 'about' }
];
// Remove some buttons provided by the standard plugins, which are
// not needed in the Standard(s) toolbar.
config.removeButtons = 'Underline,Subscript,Superscript';
// Set the most common block elements.
config.format_tags = 'p;h1;h2;h3;pre';
// Simplify the dialog windows.
config.removeDialogTabs = 'image:advanced;link:advanced';
};
4. Geh das ilch hauptverzeichnis, dann unter static/js/ckeditor öffnest du die Datei config_ilch_html.js
Das dort es so dann aussieht
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config ) {
if (typeof ilchMediaPlugin !== "undefined" && typeof ilchPsPlugin !== "undefined") {
CKEDITOR.plugins.addExternal('ilchmedia', ilchMediaPlugin);
CKEDITOR.plugins.addExternal('ilchps', ilchPsPlugin);
config.extraPlugins = "justify,font,colorbutton,colordialog,youtube,ilchmedia,ilchps";
}
else if (typeof ilchMediaPlugin !== "undefined") {
CKEDITOR.plugins.addExternal('ilchmedia', ilchMediaPlugin);
config.extraPlugins = "justify,font,colorbutton,colordialog,youtube,ilchmedia";
}
config.protectedSource.push(/<i[^>]*><\/i>/g);
config.protectedSource.push(/<\?[\s\S]*?\?>/g);
config.toolbar = 'ilch_html';
config.toolbar_ilch_html = [
{ name: 'document', groups: [ 'mode' ], items: [ 'Source' ] },
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ], items: [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ] },
{ name: 'editing', groups: [ 'spellchecker' ], items: [ 'Scayt' ] },
'/',
{ name: 'basicstyles', groups: [ 'basicstyles', 'alignment', 'cleanup' ], items: [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'RemoveFormat' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ], items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'BidiLtr', 'BidiRtl', 'Language' ] },
{ name: 'links', items: [ 'Link', 'Unlink', 'Anchor' ] },
{ name: 'insert', items: [ 'Table', 'HorizontalRule' ] },
'/',
{ name: 'styles', items: [ 'Styles', 'Format', 'Font', 'FontSize' ] },
{ name: 'colors', items: [ 'TextColor', 'BGColor' ] },
{ name: 'tools', items: [ 'Maximize' ] },
{ name: 'others', items: [ 'Youtube' ] },
{ name: 'insert', items: [ 'ilchmedia', 'ilchps' ] }
];
};