Firefox has a flaw that was introduced in a patch (see http://forums.mozillazine.org/viewtopic.php?f=9&t=1991855) in which non-standard properties in the markup are stripped when using design mode. This results in all of the data that identifies the image, format, view mode, etc. not being preserved when switching from rich text to plain text, and also has the effect of saving the node without enough information for the the image markup to be rendered when viewing the node.

CommentFileSizeAuthor
#2 917212_2.patch6.14 KBpaul.lovvik
#1 917212_1.patch6.14 KBpaul.lovvik

Comments

paul.lovvik’s picture

StatusFileSize
new6.14 KB

Here is a patch that works around this problem by stuffing these custom image attributes into the class field in the markup. This is done in a way that the data can be preserved, but it doesn't affect the special markup that represents the image in the node body, so this change does not affect the rest of the system.

paul.lovvik’s picture

StatusFileSize
new6.14 KB

Minor documentation fix.

AlexJ’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev

Is there a patch I can use with D 6.19, and Insert that will solve this problem?

JacobSingh’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

There is no 6.x version of media anymore.

james.elliott’s picture

Status: Active » Needs review

This is hideous. But it's necessary and it works. Barring some major housekeeping in the JavaScript of the module, this is the best solution that completely addresses this specific issue.

Setting to needs review so that the test can show that it applies cleanly. If so, I'll commit it.

james.elliott’s picture

Committed

james.elliott’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

Pedro Lozano’s picture

I opened an issue for some problems introduced by this patch: #1332500: Alt text doesn't work from wysiwyg