Closed (fixed)
Project:
Wysiwyg
Version:
5.x-2.1
Component:
Editor - OpenWYSIWYG
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Jul 2009 at 17:51 UTC
Updated:
23 Jul 2010 at 11:27 UTC
Jump to comment: Most recent file
Comments
Comment #1
sunCan you test in an environment without virtualization? We encountered many issues recently that could only be replicated in a virtualization.
Comment #2
eyecon-1 commentedSorry but I am not sure which virtualization you are referring to. I am testing on a local machine.
OS=Fedora 11
Webserver=Lighttpd
db=mysql
php=5.2.x
I am not running any virtual machines (if that is what you mean) nor do I have any of the VM modules loaded.
BTW, I removed the devel and installed (clean) the release version of WYSIWYG. Same result.
Comment #3
robloachI ran into something where the openWYSIWYG editor wouldn't save the changes that you made and discovered that disabling the WYSIWYG editor before saving it fixed it.
Comment #4
sunI only tested this with TinyMCE. I always wanted to add something like that. Not sure why openWysiwyg fails to attach its own form submit handler, but anyway, I hope this patch fixes it for all edge-cases.
Comment #5
robloachThanks for sticking what I posted into a patch, I was rather tied up on Thursday to translate it into a patch.... The only concern I have with this is that it might have a negative effect on other editors? I've only tested it with openWYSIWYG, TinyMCE and MarkItUp and all seemed fine. Might be worth it to just commit this, and then see if anyone runs into troubles with it during the -dev life cycle.
Comment #6
sunAgreed.
Thanks for reporting, reviewing, and testing! Committed to all branches.
A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.
Comment #8
BruceDawson commentedI just tried the patch, and there was no change in behavior. Its still dropping the content.
However, I did notice that if I disable and then re-enable the "Rich Text" option, then did a save or preview, it kept the contents.
Note: I was using OpenWysiwyg and Wysiwig 6.x-2.0. This is on drupal 6.15.
Comment #9
jamix commentedThere is a special case negative effect of the #4 patch in 5.x-2.1. When an editor is attached to the body textarea in node form and there's an ImageField upload widget, hitting the "Upload" button in the latter causes the editor to disappear. This is because the widget's "Upload" button also triggers the form submit event, although it's normally intercepted by JavaScript so no page reload takes place.