Hi.

I followed all the steps on the README and I lost CKEditor after doing it (it was working correctly before enabling the plugin in Configuration -> WYSIWYG Profiles -> Plugins). I'm using Drupal 7.24 and I believe that everything is done correctly:

# drush pm-list | grep wysiwyg
 User interface    IMCE Wysiwyg API bridge (imce_wysiwyg)        Module  Enabled        7.x-1.0     
 User interface    Wysiwyg (wysiwyg)                             Module  Enabled        7.x-2.2     
 User interface    Wysiwyg Media Embed (wysiwyg_mediaembed)      Module  Enabled        7.x-1.0 

# pwd
/var/www/drupal/drupal_test01/sites/all/modules/wysiwyg_mediaembed

# ls -l plugin/
total 4
-rw-r--r-- 1 root root    0 Mar 29  2012 PUT_mediaembed_HERE.txt
drwxr-xr-x 3 root root 4096 Sep 11 20:37 mediaembed

# ls -l plugin/mediaembed/
total 8
drwxr-xr-x 3 root root 4096 Jul 23 22:51 icons
-rwxr-xr-x 1 root root 2115 Sep 11 20:37 plugin.js

# pwd
/var/www/drupal/drupal_test01/sites/all/libraries/ckeditor

# grep "CKEditor 4\." CHANGES.md  | head -1
## CKEditor 4.3.1

Any help would be really appreciated, as I don't know what's wrong.

Comments

marcoka’s picture

you additionally need to load the iframe plugin

http://ckeditor.com/addon/iframedialog

install instructions are a bit ...incomplete

Overflowed’s picture

I've done the following:

# pwd
/var/www/drupal/drupal_test01/sites/all/libraries/ckeditor/plugins

# wget http://download.ckeditor.com/iframedialog/releases/iframedialog_4.3.1.zip
Saving to: “iframedialog_4.3.1.zip”

# unzip iframedialog_4.3.1.zip 
Archive:  iframedialog_4.3.1.zip
  inflating: iframedialog/plugin.js  

# ls -ld iframedialog
drwxr-xr-x 2 root root 4096 Jan 13 17:10 iframedialog

# ls -l iframedialog/*
-rw-r--r-- 1 root root 5478 Dec 10 11:32 iframedialog/plugin.js

Now I've enabled both "iframe" and "media embed" plugins in Configuration -> Media -> WYSIWYG Profiles -> Buttons and Plugins ... and ... still the same, "blank" textarea in rich text mode, and normal textarea in normal text mode ...

:?

Any idea of what I'm doing wrong?

EDIT: If I disable "Media embed" button&plugin, ckeditor works in rich text mode and I can see an "Iframe" button that allows to insert iframes...

emilkarl’s picture

Getting the same problem. A white textera and the error:

Uncaught TypeError: Cannot read property 'onLoad' of null ckeditor.js?n07f07:24

I've enabled iframe and mediaembed under Wysiwyg -> Buttons & Plugins. Any ideas?

Overflowed’s picture

emilkarl: I temporary moved to use the module "video_filter" until somebody can point us to the fix for this problem (I tell you in case it helps).

stenehall’s picture

I've solved this doing the following:

In the file wysiwyg_mediaembed.module

Change line 10 from " 'MediaEmbed' => array(" to "'mediaembed' => array("

Notice the uppercase/lowercase change. I haven't investigated this futher but I noticed that the plugin wasn't loaded correctly. My guess would be that different filesystems tread uppercase/lowercase differently.

I did not have to enable the iframe plugin.

socialnicheguru’s picture

#5 worked for ckeditor/plugins/mediaembed/plugin.js

Overflowed’s picture

Worked like a charm. Thanks!

Maybe it should be corrected also in the tar.gz version of the module (the one offered in drupal.org for download)...

acrosman’s picture

#5 also worked for me. I've make a quick patch, which should work against D7 or D6, but I only tested it on the D7 branch.

brightbold’s picture

Status: Active » Needs review
haunted’s picture

Edit.
#5 works for me too, i needed to apply also the patch here https://www.drupal.org/node/2363013 and follow the instructions in the new README.txt

chris_getdepth’s picture

#5 does not work for me either - i get the same empty text area space and the errors:

before #5
uncaught exception: [CKEDITOR.resourceManager.load] Resource name "MediaEmbed" was not found at..

after #5
uncaught exception: [CKEDITOR.resourceManager.load] Resource name "mediaembed" was not found at..

Wysiwyg 7.x-2.2+54-dev (as the production one stopped working with ckeditor)
Wysiwyg Media Embed 7.x-1.0
CKEditor 4.4.4.1ba5105

jazzitup’s picture

@chris_getdepth: It doesn't work for you because you didn't go through README.txt:

INSTALLATION

1) Download and install the Wysiwyg MediaEmbed module as usual.
2) Download the Media Embed plugin from
http://www.fluidbyte.net/index.php?view=embed-youtube-vimeo-etc-into-cke...
3) Unzip the plugin in the 'plugin' folder. The main Javascript file of
the module should be in 'wysiwyg_mediaembed/plugin/mediaembed/plugin.js'
4) Enable the plugin in the Wysiwyg profile configuration page.

haunted’s picture

@jazzitup: Hi, the url at point 2) is still the old one, it has to be replaced with http://ckeditor.com/addon/mediaembed , as explained here https://www.drupal.org/node/2363013 .

  • HongPong committed 182545d on 7.x-1.x
    Issue #2363013 #2164239 by HongPong, tregismoreira, acrosman: fix...
hongpong’s picture

Status: Needs review » Fixed

Thank you, I have committed your patch combined with another fix. It is in 7.x-dev now. Please re-open this thread if not effective. I will bump the module version if I get a confirmation or 2 things worked.

  • HongPong committed 0a9ef64 on 6.x-1.x
    Issue #2363013 #2164239 by HongPong, tregismoreira, acrosman: fix...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

jgibso’s picture

Still not working when using the dev version.

ggiakoumidakis’s picture

Same problem here, icon not showing. Any ideas?

hongpong’s picture

Please see also #1670310: Ckeditor disappears from text areas. Tagging a new release 7.x-1.1 with the bug fix there.