Needs work
Project:
CKEditor 4 - WYSIWYG HTML editor
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Major
Category:
Support request
Assigned:
Reporter:
Created:
12 Jul 2011 at 07:40 UTC
Updated:
7 Feb 2013 at 09:21 UTC
Jump to comment: Most recent
Comments
Comment #1
dczepierga commentedHi,
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
Comment #2
fly_mountain commentedHi,
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.
Comment #3
mkesicki commented@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 ?
Comment #4
dczepierga commented@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
Comment #5
drupalpal commentedI 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!
Comment #6
drupalpal commentedI can see that ckeditor returns "u is null" as a javascript error in config.js and yes ckeditor disappears.
Comment #7
mkesicki commentedNo @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.
Comment #8
sashkernel commentedI've got exact same issue. No resolution for now.
Comment #9
synesis commentedI 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.
Comment #10
mkesicki commented@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 ?
Comment #11
sashkernel commentedYes, it stopped working completely.
I got around this issue by updating to 7.x-1.6. Works perfectly fine there.
Comment #12
dczepierga commented@sashkernel, do u have any errors in Firebug (Firefox addon)? All files are loaded in Net tab?
Greetings
Comment #13
SanderMander commentedJs error:
Uncaught TypeError: Cannot read property 'onLoad' of null
in ckeditor.js line 2667. I decompressed file with netbeans.
When embedMedia plugin is enable
Comment #14
indaloweb commentedsame problem as #13
Comment #15
simohell commentedAt the site http://www.fluidbyte.net
This worked for me (6.x-1.10 + 3.6.2).
Comment #16
mkesicki commented@simohell thank you for notice this.
Comment #17
mkesicki commentedComment #18
dczepierga commentedHi,
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
Comment #19
PattiS-1 commentedI 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
Comment #20
mhmd commentedi done but the code appears as linked text and no video appears
Comment #21
steffenrI 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 ?
Comment #22
prinds commentedI had similar symptoms as drupalpal describes in #6
My error message was : TypeError: o is null
SteffenR's fix (#21) works for me too..
Comment #23
johnvsc commentedI 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.
Comment #24
socialnicheguru commentedthis solved it for me
https://drupal.org/comment/8444243#comment-8444243
confirm #1