2017-05-05 1 views
-2

Mein CKEditor confiq.js wie folgt:wie youtube Plugin in den CKEditor

CKEDITOR.editorConfig = function(config) { 
     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: 'about' } 
     ]; 
     config.extraPlugins = 'imageuploader'; 
     config.removeButtons = 'Underline,Subscript,Superscript'; 
     config.format_tags = 'p;h1;h2;h3;pre'; 
     config.removeDialogTabs = 'image:advanced;link:advanced'; 
     }; 

ich youtube wollen url hinzufügen und youtube mir bekommen vedio.please helfen

+0

RTFM bitte. Du musst einen Versuch machen – Akintunde007

+0

was brooo. ich bin beginer zu php .dies ist für mein accadamic Projekt ich bin nicht Entwickler. @ Akin –

Antwort

0

Folgen Sie diesen Schritten:

  1. Download YouTube-Plugin ist in komprimiertem Format.
  2. Entpacken Sie die heruntergeladene Datei in den Plugins-Ordner des CKEditors.
  3. Addconfig.extraPlugins = 'youtube'; in Ihrer Konfiguration (config.js).

confiq.js Code wie folgt:

CKEDITOR.editorConfig = function(config) { 
     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: 'about' } 
     ]; 
     config.extraPlugins = 'imageuploader'; 
     config.removeButtons = 'Underline,Subscript,Superscript'; 
     config.format_tags = 'p;h1;h2;h3;pre'; 
     config.removeDialogTabs = 'image:advanced;link:advanced'; 
     config.extraPlugins = 'youtube'; 
     config.youtube_width = '640'; 
     config.youtube_height = '480'; 
     config.youtube_responsive = true; 
     config.youtube_older = false; 
     config.youtube_related = true; 
     config.youtube_autoplay = false; 
     config.youtube_controls = true; 
     config.youtube_privacy = false; 

     }; 

den Code ausführen u bekommen.

+0

Sein sehr einfaches und sein sehr offenbar gegeben im http://ckeditor.com/addon/youtube .so gehen durch diesen Link. –

+0

ja es funktioniert .thanku –

Verwandte Themen