Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi all,
When i edit the config.js and uncomment the following lines
// 'MediaEmbed' plugin. To enable it, uncomment lines below and add 'MediaEmbed' button to selected toolbars.
config.extraPlugins += (config.extraPlugins ? ',mediaembed' : 'mediaembed' );
CKEDITOR.plugins.addExternal('mediaembed', Drupal.settings.ckeditor.module_path + '/plugins/mediaembed/');
The editor disappears. The code for IMCE however is working fine. There's a plugin.js in /ckeditor/plugins/mediaembed. So i'm wondering what i'm doing wrong. Is there somewhere additional documentation how to install this plugin?
Comments
Comment #1
MatthijsG CreditAttribution: MatthijsG commentedExtra info: I followed exactly the readme.txt. The editor shows not up
Comment #2
mephir CreditAttribution: mephir commentedHave you got any javascript error ? Can you provide me information about using browser/operating system and ckeditor module version ?
Comment #3
wreford CreditAttribution: wreford commentedSame thing is happening to me, in fact, the entire Body field just disappears, flashing briefly before showing a smooth white space.
ckeditor module 6.x-1.1 (i.e. no wysiwyg module)
ckeditor code and mediaembed plugin are from this week
browser: safari/chrome/ffox, osx, and ffox/chrom, win7
server: osx server 10.6 with php5.2
Firebug says:
uncaught exception: [CKEDITOR.resourceManager.load] Resource name "MediaEmbed" was not found at "http://[my site]/sites/all/modules/ckeditor/ckeditor/plugins/MediaEmbed/plugin.js?t=A39E".
I've renamed the directory to the proper case, the path is correct except for the "?t=A39E"
I've tried disabling security filters, or different ones.
The 'switch to plain editor' link is inactive.
The field outputs this for firebug:
Hope that reveals something simple and obvious, I would really like to have users embedding media this way.
Comment #4
mephir CreditAttribution: mephir commentedThere is mistake in path. It should looks like
http://[my site]/sites/all/modules/ckeditor/plugins/mediaembed/plugin.js?t=A39E
. Can you paste which lines related to mediaembed have you got into configuration file ? Everything into path should be written with small chars.Comment #5
wreford CreditAttribution: wreford commentedAh! solved, thank you. I was confused by the sites/all/modules/ckeditor/ckeditor/plugins path (i.e. the ckeditor module uses another ckeditor directory in it), and followed the instructions included with the plugin incorrectly:
Because I didn't interpret the "~" properly in those instructions, and there are two plugin folders, I put the plugin into the module's plugin folder not the editor's plugin folder.
I also tried uncommenting the mediaembed lines at the bottom the config file, but that didn't work. I think some clearer documentation would help us noobs, as there are ambiguous/conflicting instructions and duplicated files in both module and editor. The upper case letters were there because the server's case-sensitive and I was trying various things as troubleshooting, including renaming the directory.
So now the path I provided works, thanks. Hope this clarifies things for others, too.
Comment #6
mephir CreditAttribution: mephir commentedIf you have any lack of clarity about issue, feel free to reopen it.
Comment #7
MatthijsG CreditAttribution: MatthijsG commentedOpening. Followed above instructions and can't get it to work
@5 - so i do need to add config.extraPlugins = 'MediaEmbed'; without uncommenting the lines 145 + 146 (Mediaembed plugin)? These are the lines 20-33
This gives me a blank bodyfield. Removing the 'mediaembed' resolves the problem. I noticed that all these plugins aren't working .. The plugins are placed in /sites/all/modules/ckeditor/plugins
I'm not familiar with Firebug, however i tried it. Somewhere in the DOM section i found this reference (window >> CKEDITOR >> config >> templates_files >> 0 : http://www.[site.tld]/sites/all/libraries/ckeditor/plugins/templates/tem...
.../templates/templates/.. is a directory that does not exist. Where and how to alter this?
Comment #8
wwalc CreditAttribution: wwalc commentedCheck the latest dev release, it should be working fine (I've just checked it). Make sure you have uncommented only:
Comment #9
Standard Machine CreditAttribution: Standard Machine commentedI was having this same issue, got it working, thought I'd share what helped.
I tried the latest dev version and did the uncomment thing in ckeditor.config.js, to no avail.
Looking at this patch showed me what I was doing wrong. http://drupal.org/node/655938
In ckeditor.config.js
Step 1
Remove (line 23)
config.extraPlugins = '';
Replace with
config.extraPlugins = 'MediaEmbed';
Step 2
Remove (line 130)
//config.extraPlugins += (config.extraPlugins ? ',mediaembed' : 'mediaembed' );
//CKEDITOR.plugins.addExternal('mediaembed', Drupal.settings.ckeditor.module_path + '/plugins/mediaembed/');
Replace with
CKEDITOR.plugins.addExternal('MediaEmbed', Drupal.settings.ckeditor.module_path + '/plugins/mediaembed/');
Step 3 (line 82)
Put the button in the toolbar.
Remove
['DrupalBreak', 'DrupalPageBreak']
Replace with
['DrupalBreak', 'DrupalPageBreak', 'MediaEmbed']
Step 4
That got the editor working again and provided the proper button, but when you click it you won't get right input field (iframe breaks), so replace the mediaembed plugin (in the module's plugins directory) with the one from here:
http://www.fluidbyte.net/index.php?view=embed-youtube-vimeo-etc-into-cke...
It has the extra html, that the embed field's iframe is looking for.
Hope this helps.
Comment #10
geantbrun CreditAttribution: geantbrun commentedHi,
I am having this same issue, could I ask you to clarify things, information I got from different sources seems contradictory.
1) Where should I unzip the CK_Media_Embed file? In ckeditor/ckeditor/plugins or in ckeditor/plugins?
2) what .js files should I modify? Only config.js in ckeditor/ckeditor? Only ckeditor/ckeditor.config.js? Both?
3) what modifications should I make in the file(s)?
4) should I apply any patch?
5) what version of ckeditor is needed? Is .dev mandatory?
thank you in advance,
Patrick
Comment #11
Anonymous (not verified) CreditAttribution: Anonymous commentedhey Patrick
I was havinh trouble with this and realized i and placed the plugin in the wrong directory. It should be placed in the /libraries/ckeditor/plugins dir.
Although after that it still was not working. Instead of uncommenting the two lines i just added
config.extraPlugins = 'MediaEmbed';
and the added 'MediaEmbed' to the toolbar.
2. Edit the config.js in the module dir
5. I was using the latest stable release
hope you come right
Comment #12
Anonymous (not verified) CreditAttribution: Anonymous commentedHi
I have the same issue but the thing is ...It works on the localhost but as soon as i transfer the files over to the server then the error occurs.
uncaught exception: [CKEDITOR.resourceManager.load] Resource name "MediaEmbed" was not found at "http://msf-dev.co.za/sites/all/libraries/ckeditor/plugins/MediaEmbed/plu...".
Any suggestions?
Comment #13
dczepierga CreditAttribution: dczepierga commented@bukem, could u try update to last dev version?
It's look like u get wrong path to plugin...
Comment #14
Anonymous (not verified) CreditAttribution: Anonymous commentedYeah that work!
Thanks
Comment #15
dczepierga CreditAttribution: dczepierga commentedOk as I see everything work so i closed it...
All people who have problem with it pls update to last DEV version :)
Grretings
Comment #17
hatuhay CreditAttribution: hatuhay commentedUpgrade CKEditor to version 6.x-1.5, CKEditor to 3.6.1 and enable MediaEmbed.
Following instructions, added the MediaEmbed buttom to the ckeditor.config.js as follows:
Editor is gone.
This is HTML in place of CKEditor:
Upgrade to 6.x-dev, same thing.
Caches flushed.
No idea what to do.
Comment #18
simohell CreditAttribution: simohell commentedAt the site http://www.fluidbyte.net
This worked for me (6.x-1.10 + 3.6.2).
Comment #19
mkesicki CreditAttribution: mkesicki commented@simohell thank you for notice this.