Are there any plans to integrate CKEditor module with the Media module for d7? I am just starting out with d7 and the CKEditor. I know that IMCE is one potential choice for embedding media but as I understand it, Media module is/will be more versatile. Are there any other options I should consider?

Comments

dczepierga’s picture

Status: Active » Postponed
Issue tags: +D7, +#d7ux, +ckeditor-7.x

Now u can choose between IMCE and CKFinder. There was more plugins supported but now aren't ported to D7, so we disable support for them.
I think we could try to integrate with this module in near future.

Greetings

bhatian’s picture

Thanks. I tried CKFinder and I liked it a lot!

Naresh

Mamoun’s picture

Subscribe

Gr3fweN’s picture

Any progress on this?

rickmanelius’s picture

I would definitely like this a lot. I've been testing out the media module and it kicks butt. The last piece I need is the button to appear on the ckeditor module. I'd hate to have to switch to the WYSIWYG module just to get that button because I much prefer the ckeditor module's flexibility!

Is it a simple matter of adding a plugin to the skin or is it more complicated than that?

jurgenhaas’s picture

I'd be very interested in this too. Maybe I start working on it shortly and then submit the result here for review.

dczepierga’s picture

@jurgenhaas, we work on integration with media module and we're in the end... Probably today should appear first version of it, so pls be patient...

Greetings

dczepierga’s picture

Version: 7.x-1.0-rc1 » 7.x-1.x-dev
Status: Postponed » Needs review

In the last DEV version of CKEditor module I add support for Media module.

To enable this feature u must go to Profile settings of CKEditor module and in the "Editor appearance > Plugins" section, enable Media plugin and add button 'Media' to toolbar.

After this everything should work...

This feature needs review for pls write here all your problems and bugs...

Greetings

jurgenhaas’s picture

Wow, sounds great, I'll have a look and report back when it's available (may take a little while before the process cicks in again)

jurgenhaas’s picture

Unfortunately, I can't get it to work. What happened:

1) I downloaded the latest DEV vom CKEditor and turned on the new media plugin as described in #8. Then I wanted to edit a node and received an incomplete page. Nothing in db_log but in the php_error.log I found that Call to undefined function media_include_browser_js() in /sites/all/modules/ckeditor/includes/ckeditor.lib.inc on line 610

2) This function is defined in .../media/wysiwyg_plugins/media.inc but that file isn't loaded at the time. Instead, CKEditor is loading module_load_include('inc', 'media', 'media.browser'); but the called function isn't in there.

3) So I checked updating the media module and suddenly got a WSOD because of Call to undefined function file_view_file() in sites/all/modules/media/includes/media.filter.inc on line 348.

So I'm somehow stuck in errors now. Any advise?

mkesicki’s picture

Status: Needs review » Needs work

Hi,
@jurgenhaas thanks for report this. We will check & fix this ASAP.

dczepierga’s picture

Status: Needs work » Needs review

Hi,

I make fix for this error - when we make integration with Media module it was beta3 version, now it's beta4 so they make small changes :)
All changes i commit to GIT, so pls update to last DEV version and then try to use it.

@jurgenhaas, thx for help :)

So again module is ready for review. I hope now it will be better....

Greetings

jurgenhaas’s picture

Thanks @dczepierga, unfortunately the error in media module is still present, I'm using the dev release as of April 28. The error message is PHP Fatal error: Call to undefined function file_view_file() in /sites/all/modules/media/includes/media.filter.inc on line 348 and I wonder if I need to report this to the media module issue queue?

mkesicki’s picture

Status: Needs review » Needs work
dczepierga’s picture

@jurgenhaas, could u try this with Media module 7.x-1.0beta4?
For now i don't think we should give support for DEV module, because it's not stable version but only beta and hole time everything is changing - it will be easier to support released version for now, not DEV version.

Greetings

Shadlington’s picture

Subbing. This is the only feature that is holding me back from switching from WYSIWYG to CKEditor.

FYI: Media module is undergoing some pretty severe changes at present. The current dev has already made a significant departure from the last beta. So yes, right now there is no point in supporting the dev - stick to beta4.

dczepierga’s picture

Status: Needs work » Needs review
jurgenhaas’s picture

Status: Needs review » Reviewed & tested by the community

It's looking good. I got it working with the beta 4 of the media module.

Now, regarding functions, I'm wondering about two things:

1) The description which is provided for the image isn't used anywhere. Maybe a separate bug?

2) Once an image is included into the text with e.g. format "large" there is not way to change that again afterwards. Wouldn't it be important to have a chance to highlight the image and click on the Media icon again to be able to change the format and the description?

Anyway, thanks for your great work to date.

rnyberg’s picture

Image Format list is missing all the custom formats that can be created using the Styles module. We have a custom image style for Inline Images for example, but it's not appearing in the dropdown. It is visible in Manage Display if you create a Image field in a node and click format, and it's also selectable in Views. Is this functionality underway for the CKEditor module?

Would also be nice to be able to define image alignment directly, and not after the image has been added to the body.

dczepierga’s picture

@jurgenhaas, really thx for your review and notices. We will develop this plugin, but for now we want give sth working with basic functions - then we can start to develop it.

@myberg, but we only display a window of Media module, we don't control the content inside it? Do you check this only with Media module without CKEditor module?

Greetings

Shadlington’s picture

I'm not sure what the correct way is, but I would look at the media integration in the WYSIWYG module for inspiration, as that has been done with the assistance of the media module maintainers. The approach they are taking is most likely the correct one.

pixelsweatshop’s picture

Doing some testing. Noticed the the icons for the 'Media' and 'MediaEmbed' do not display properly. Appear to be a generic icon.

cajunmba’s picture

I am unable to find anything labeled "Plugins" within the "Editor Appearance" section of the Profile. I added 'Media' to the Toolbar, but can you please tell me where to find the "Plugins" section? Running Media 7.x-1.0-beta4, CKEditor 3.6, WSYWIG 7.x-2.0. Thank you.

mkesicki’s picture

Hi,
@cajunmba this tracker is for CKEditor module not WYSIWYG module. Please search info on they tracker, site.

dczepierga’s picture

Status: Reviewed & tested by the community » Closed (fixed)

@Shadlington, remeber that we speak about integration with beta4 version of Media module, last DEV version for now we don't support because they change engine all the time, when they release next version we add support for all that things asap...

@cajunmba, u are using WYSIWYG module so u must ask in their support or start to use CKEditor module - it's very similar to WYSIWYG module but it's written only for this editor and not for all as WYSIWYG, so we can make more configuration options then they have :)

I closed this issue. For all new bugs, feature request etc pls create new issue.

Greetings

lisotton’s picture

Issue summary: View changes
Status: Closed (fixed) » Active

Hi guys,

media 7.x-1.4
ckeditor 7.x-1.15

I'm trying to use media plugin, but "attach" and "detach" function aren't called and Drupal are saving the rendered img tag in the database instead of media markup.

When this plugin was developed this was tested?

Thank you.

- Leandro

jcisio’s picture

Status: Active » Closed (fixed)

This issue is closed more than 3 years ago. Please file a new one if it does not work for you.