Hey there,
sorry for bugging you again. I have to admit, that I am not a php coder, and I am doing all by trial and error. So I need to ask for your help again.
The thing is - I did create a custom module where I try to implement a plugin for youtube videos. I am not quite sure, if I am doing something wrong here, or if it is the plugin which is causing the problem.
I can see the/my youtube checkbox in the settings, so far it is working. But as soon as I activate it, the editor isn't working anymore (not loaded). This is the code I am using:
function wysiwygsetting_wysiwyg_plugin($editor, $version) {
if ($editor == 'ckeditor') {
return array(
'Youtube' => array(
'url' => 'http://sourceforge.net/projects/ckeditoryoutube/',
'path' => drupal_get_path('module', 'wysiwygsetting') . '/youtube',
'load' => TRUE,
'buttons' => array('INTERNAL_BUTTON_NAME' => t('Youtube')),
)
);
}
}The plugin which I am using is the one from here: Sourceforge - I did try others as well, same result.
As I said - I am not sure if it is my fault, or if the plugin isn't compatible or not working.
Thanks for your help in advance!!
Comments
Comment #1
jonhattanSome advice - open the console error to see what is stopping the editor. In firefox it is CTRL+SHIFT+J
FYI there's http://drupal.org/project/video_filter
Comment #2
Yucom commentedHey jonhattan,
thanks a ton for your help. I will have a closer look on what's causing the error.
Also thank you for the hint with video filter. Didn't know it until now, and it's looking very promising!
I'll close this ticket, as I think the error has nothing to do with wysiwyg itself.
Thanks again!