Opened 5 years ago

Closed 5 years ago

#12832 closed Bug (invalid)

Image 2: Linked caption images crashing JS libraries rendering CKEditor unusable.

Reported by: rotedeveloper Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

I had a brief search in the community so forgive me if this is a duplicate/known issue.

This particular bug occurs when you insert an image within CKEditor (Image 2 Plugin), provide a caption to the image, and then try apply a link to the entire image & caption. If you then click the 'Source' button, or save and then re-edit the content then all the toolbar buttons are inactive.

It looks like something going a bit awry with element handling but whatever the problem is it is causing all page JS to fail.

This is reproducible on all modern Win/Mac browsers (not tried *nix, but presume the same) and where we have CKEditor for use within Drupal (I cannot confirm if this issue is present in non-Drupal setups). Drupal version is 7.32, CKEditor 4.4 and Image 2 4.4.6.

Change History (5)

comment:1 Changed 5 years ago by Jakub Ś

Status: newpending

I have tried default CKEditor (with image2 as the only enhancement) and Drupal but no issue has occurred.

Are you able to reproduce this issue in fresh Drupal with default CKEditor installed?

Are you using any Drupal plugins, CKEditor custom plugins or have CKEditor core code modifications that might have influence this behaviour?

comment:2 Changed 5 years ago by rotedeveloper

This is interesting. I too have just tried it with a clean installation of Drupal (7.34) and everything worked ok. I can only conclude that there must be another component/plugin we're using in CKEditor that I haven't accounted for and is interfering somehow.

We're not using any custom modifications to CKEditor but we are using additional modules in our Drupal installation. It's quite an extensive list; would you like me to list them all?

Thanks for your input so far.

comment:3 Changed 5 years ago by Jakub Ś

We're not using any custom modifications to CKEditor but we are using additional modules in our Drupal

I meant CKEditor JavaScript core code modifications.

It's quite an extensive list; would you like me to list them all?

Well... no. I think it will be easier if you check which extra CKEditor plugin is causing this. You can download default package and then start adding manually new CKEditor custom plugins you use. After each addition cache has to be clear in order to get correct result.

I third party editor plugin is not to blame, you could start the same with modules but I don't really think that module could cause something like that unless this is some link or weird security filter module.

Could you also check Console (e.g. Chrome or Firefox) - perhaps there is an error which will tell you more.

comment:4 in reply to:  3 Changed 5 years ago by rotedeveloper

Replying to j.swiderski:

I meant CKEditor JavaScript core code modifications.

There haven't been any changes made to core JS in CKEditor

Well... no. I think it will be easier if you check which extra CKEditor plugin is causing this. You can download default package and then start adding manually new CKEditor custom plugins you use. After each addition cache has to be clear in order to get correct result.

As part of the rebuild/reinstall from my previous comment this was a rebuilt of CKEditor with the same plugins (apologies if this was not clear). I'm guessing there was a patch somewhere down the line that may have fixed the issue.

I can't find anything else that would be useful to pursue this further. As we're not experiencing the issue any more I'm happy for you to mark this 'resolved' and leave the ticket for archive purposes.

comment:5 Changed 5 years ago by Jakub Ś

Resolution: invalid
Status: pendingclosed

Thank you for your comment. I'm closing the ticket.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy