How to Implement a YouTube Embedded Plug-in in the CKEditor

Asked 1 years ago, Updated 1 years ago, 26 views

Let me ask you a question.

I am using Ckeditor as a CDN and would like to implement the http://ckeditor.com/addon/youtube plug-in.
It's not going well.

to config.js

CKEDITOR.plugins.addExternal('youtube', '/myplugins/youtube/', 'plugin.js');
config.toolbar+=[{name:'insert', items:['Image', 'Youtube']}];

However, the icon was not displayed and there were no errors on the console, so I was at a loss.

I would appreciate it if you could let me know.

javascript

2022-09-30 18:46

1 Answers

Please check two things.

Do you specify config.js to add plugins?

CKEDITOR.editorConfig=function(config){
    config.extraPlugins='youtube';
};

Is your config.js really loaded? Is your console.log output?


2022-09-30 18:46

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.