Hmmm, doesn't work. When I press "Ok" with code in the dialog nothing happens. When there's no code the dialog simply closes. It happens in all the newest browsers. I tested with Youtube, blip.tv and vimeo. Opera is kind enough to give me an error message when I click on the oEmbed icon and another when I press Ok (the other browsers simply don't do anything). Also, in FireFox the dimension text is misaligned and the code should be config.extraPlugins = 'oEmbed'; without brackets. Here's a screenshot of the Opera messages and FF dialog:
Tue, 05/15/2012 - 16:02
#1
oEmbed Plugin

We have to remove comas after labels :
}, { type: 'hbox', widths: ['50%', '50%'], children: [{ type: 'text', id: 'width', 'default': '560', label: editor.lang.oEmbed.width[b],[/b] }, { type: 'text', id: 'height', 'default': '315', label: editor.lang.oEmbed.height[b],[/b] }]There is a bug with minWidth too.
I changed :
by
3. In the same CKEditor configuration file (config.js) add the 'oEmbed' in the toolbar, similar to the following example:
{ name: 'insert', items : [ 'Image','oEmbed','Youtube','Video','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak' ] },After following the directions and loading jquery on the editor page, this plugin menu loads and when entering a YouTube url and clicking OK, the box closes but there is no code updated in the editor. I'm using Chrome version 20x. I hope these notes are helpful in resolving this problem and making this plugin work with the major browsers.
Result: The oEmbed Plugin menu accepts the YouTube URL (including other sources) and closes. However, there is nothing on the editor box of the URL information, it's blank. Chrome version 20x, there are no errors in javascript. If there is any step I've missed, please clarify if this plugin works with the current CKEditor version: 3.6.3.
After pressing OK button log error write: console is not defined at oEmbedDialog.js at line 32. How fix it?
Description
This Plugin allows to insert embedded content (such as photos, videos, audio, and other rich media) via the OEmbed API. You only have to provide the url to the site (It works also when the url is shortened) you want to embed and the plugin does the rest.
Currently Supported Sites...
Video
Audio
Photo
Rich
Screenshots
License
Licensed under the terms of the MIT License.
Download
for CKEditor 3.6.x
oEmbed_CKEditor3.zip
for CKEditor 4
oEmbed_CKEditor4.zip
Installation
1. Extract the contents of the file into the "plugins" folder of CKEditor.
2. In the CKEditor configuration file (config.js) add the following code:
3. and also include the plugin in the toolbar
Attachments:
Have you tested your plugin in Internet Explorer ? It doesn't work for me.
I saw little differences between the file you provided and this one : https://github.com/starfishmod/jquery-o ... .oembed.js
Regards,
Alexandre
Détails de l’erreur de la page Web
Agent utilisateur : Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; .NET4.0C)
Horodateur : Tue, 2 Oct 2012 05:20:25 UTC
Message : Identificateur, chaîne ou nombre attendu
Ligne : 230
Caractère : 9
Code : 0
URI : /oEmbed/dialogs/jquery.oembed.js?t=C6HH5UF
Message : Cet objet ne gère pas cette propriété ou cette méthode
Ligne : 30
Caractère : 6
Code : 0
URI : oEmbed/dialogs/oEmbedDialog.js?t=C6HH5UF
Attachments:
error: settings.onError.call(container, externalUrl, embedProvider)
and it works on IE
Why ?
Well if it works with that code i re-add that code.
http://www.youtube.com/watch?feature=pl ... tXtSGRV0xc
(note v= param is at the END of URL)
nothing happens in FF or chrome.
In IE, I get this error:
Unable to get the value of the property 'json': object is null or undefined
jquery.oembed.js
line: 444
char: 6
- - - - - - - - - - - - - -
Unfortunately, this URL format is quite common.
the youbute oembed service can not handle such urls with mor then the v query string. The only way is to fix the url before its send to youtube. I updated the plugin downloads are updated.
https://github.com/w8tcha/CKEditor-oEmbed-Plugin
I loaded correctly oEmbed plugin for CKEditor 3.x, but when I try to embed
chrome debug console returns:
Am I making something wrong?
I opened a github issue: https://github.com/w8tcha/CKEditor-oEmbed-Plugin/issues/1
The current version (4.0) of the OEmbed plugin is not compatible with CKEditor 4.1, thwors an error of Uncaught TypeError: Cannot read property 'isBlock' of undefined. The fix is really easy. In the ombed plugin directory find the plugin.js and change the following rows
to
editorInstance.insertHtml(editor.config.oembed_Wrapper != null ? $('<div>').append($(editor.config.oembed_Wrapper).append(e.code)).html() : e.code);From now on instead of specifying a wrapper class like
specify any wrapping tag with additional attributes and/or styles, like
And that's all.