I want to ask for help, after installing mediaEmbed and turning on mediaEmbed button in Ckeditor toolabar, ckeditor disappears and I can't do anything. If I turn off mediaEmbed button, ckeditor works, but I can't put video from youtube, because there is no button of mediaEmbed.

Comments

dczepierga’s picture

Status: Active » Postponed (maintainer needs more info)

Hi,

The button have name: 'MediaEmbed' - remember that the button name is case sensitive.
If it doesn't help pls copy here your toolbar definition with pasted MediaEmbed button, i will check that...

Greetings

fly_mountain’s picture

Hi,

i hope you ment this thing:

[
['Source'],
['Cut','Copy','Paste','PasteText','PasteFromWord','-','SpellChecker', 'Scayt'],
['Undo','Redo','Find','Replace','-','SelectAll','RemoveFormat'],
['Image','Media','MediaEmbed','Flash','Table','HorizontalRule','Smiley','SpecialChar'],
'/',
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl'],
['Link','Unlink','Anchor'],
['DrupalBreak'],
'/',
['Format','Font','FontSize'],
['TextColor','BGColor'],
['Maximize', 'ShowBlocks']
]
And one more thing, I can't see it (toolbar) in ckeditor.config.js, i can change it only in my page as administrator.

mkesicki’s picture

@fly_mountain in drupal 7 version you should see toolbars only in administration page. I have just check
"Plugin for inserting Drupal embeded media (buttons: MediaEmbed) " option in "editor appearance" section of CKEditor profile configuration and add 'MediaEmbed' button in toolbar section of my profile (just above checkbox of mentioned option) and it works. I can see MediaEmbed button. Do you see any errors in Firebug (Firefox add-on) when your CKEditor disappears ?

dczepierga’s picture

@fly_mountain, u don't need to do anything in ckeditor.config.js - all what u need u can do in your CKEditor profile (additional config options set in section Advanced Options > Custom javascript configuration of your profile), i check your toolbar and with last DEV everything seems to works fine, maybe try to update to last DEV and write does it help or not...

Greetings

drupalpal’s picture

I don't seem to be able to understand what has to be done , there is a plugins folder that already contains mediaembed in ckeditor/plugins , and there is a second plugin folder in (ckeditor/ckeditor/plugins ), do I need to download anything in ckeditor/ckeditor/plugins ?

What has to be done exactly to get this working ? Should I edit config.js file ?
I am using 7.x-1.3 ...

Thanks!

drupalpal’s picture

I can see that ckeditor returns "u is null" as a javascript error in config.js and yes ckeditor disappears.

mkesicki’s picture

Version: 7.x-1.2 » 7.x-1.3

No @drupalpal you should not copy anything to anywhere. There are two 'plugins' directories - one for plugins added to CKEditor module and second fro plugins shipped with CKEditor library (this ckeditor/ckeditor/plugins). In CKEditor profile configuration in "Editor appearance" tab you should check "Plugin for inserting Drupal embeded media " option. Remember to add "MediaEmbed" to your toolbar. In 7.x-1.3 or DEV version you should not edit config.js file to use "MediaEmbed" plugin.

sashkernel’s picture

I've got exact same issue. No resolution for now.

synesis’s picture

I had this exact problem. On the CKEditor Profile page under "Editor Appearance I turned off "MediaEmbed button in toolbar " and enabled "IMCE Window button in toolbar" and the problem was fixed. Obviously i've added the IMCE module to the site.

mkesicki’s picture

@sashkernel what problem do you have ? You can't turn on MediaEmbed plugin ? Or after turn it on CKEditor stop working and there are JavaScript errors ?

sashkernel’s picture

Yes, it stopped working completely.
I got around this issue by updating to 7.x-1.6. Works perfectly fine there.

dczepierga’s picture

@sashkernel, do u have any errors in Firebug (Firefox addon)? All files are loaded in Net tab?

Greetings

SanderMander’s picture

Version: 7.x-1.3 » 7.x-1.6

Js error:
Uncaught TypeError: Cannot read property 'onLoad' of null
in ckeditor.js line 2667. I decompressed file with netbeans.

When embedMedia plugin is enable

indaloweb’s picture

same problem as #13

simohell’s picture

At the site http://www.fluidbyte.net

eamonn said on Feb 4, 2012:

Hey, Thanks for your plugin! It didnt work out of the box for me. I had to rename the mediaembed folder to MediaEmbed. I hope this helps someone else!

This worked for me (6.x-1.10 + 3.6.2).

mkesicki’s picture

Status: Postponed (maintainer needs more info) » Needs review

@simohell thank you for notice this.

mkesicki’s picture

Status: Needs review » Needs work
dczepierga’s picture

Version: 7.x-1.6 » 7.x-1.x-dev

Hi,
Could u try to reproduce this with last stable version of CKEditor Module 7.x?
I try to reproduce this without any result, everything works for me...

Greetings

PattiS-1’s picture

I was having the same problem some time ago. I've tried several solutions with no success. I forgot that the button name was case sensitive! Thanks for reminding me of that
Howard, family tree maker

mhmd’s picture

i done but the code appears as linked text and no video appears

steffenr’s picture

I had the same issue and could fix it by renaming the name of the plugin in plugin.js from mediaembed to MediaEmbed

This is caused by camelcase naming of the plugin in wysiwyg_mediaembed.module file.. Maybe we should change it here ?

prinds’s picture

I had similar symptoms as drupalpal describes in #6

My error message was : TypeError: o is null

SteffenR's fix (#21) works for me too..

johnvsc’s picture

I had this issue with a custom plugin.

The solution for me was to make the name of the plugin the same CamelCase (yes, with the first letter capitalized)

It seems that somewhere in JS this is relevant. So, any reference to the plugin / widget name needs to be the same.

socialnicheguru’s picture