ezsystems/ezoe — pull request #30 by dpobel (2012-08-06 09:51:05+00:00)
Title: Fixed #19531: Error when saving draft while in fullscreen edit mode

Bug: http://issues.ez.no/19531
Alternative solution to: https://github.com/ezsystems/ezoe/pull/28

Description
===========

TinyMCE displays an error when trying to store the draft in fullscreen mode using the button in the tinyMCE's toolbar. This occurs because of the way the fullscreen mode works. When in fullscreen mode, the editor is actually duplicated and attached to a div that is not in the edit form that's why our code to retrieve the JavaScript form object fails.

This patch changes the way the form object is retrieved so that it's compatible with the fullscreen mode.

Testing
=======
Manual tests in both fullscreen and normal modes with IE8, Firefox and Chrome.