From aa75b3572c4de53914fd92816c68d53cf3f30489 Mon Sep 17 00:00:00 2001 From: Julio Cesar Laura Date: Tue, 15 Jan 2013 16:06:43 -0400 Subject: [PATCH] WYSIWYG improvement for output documents --- gulliver/system/class.wysiwygEditor.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gulliver/system/class.wysiwygEditor.php b/gulliver/system/class.wysiwygEditor.php index 1c1beeaa2..2b1d1031e 100644 --- a/gulliver/system/class.wysiwygEditor.php +++ b/gulliver/system/class.wysiwygEditor.php @@ -141,6 +141,12 @@ class XmlForm_Field_WYSIWYG_EDITOR extends XmlForm_Field inst.save(); } return true; + }, + handle_event_callback : function(e) { + if(this.isDirty()) { + this.save(); + } + return true; } }); ';