Author: pyaschenko
Date: 2009-07-30 08:08:33 -0400 (Thu, 30 Jul 2009)
New Revision: 15063
Modified:
branches/community/3.3.X/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/editor.js
Log:
https://jira.jboss.org/jira/browse/RF-7420
Modified:
branches/community/3.3.X/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/editor.js
===================================================================
---
branches/community/3.3.X/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/editor.js 2009-07-30
11:50:44 UTC (rev 15062)
+++
branches/community/3.3.X/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/editor.js 2009-07-30
12:08:33 UTC (rev 15063)
@@ -40,7 +40,7 @@
destruct: function(isAjax) {
A4J.AJAX.removeListener(this.onBeforeAjaxListener);
- if(isAjax){
+ if(isAjax && this.tinyMCE_editor){
this.tinyMCE_editor.remove();
}
this.onInitInstanceCallbackFunction = null;
@@ -77,7 +77,9 @@
},
onBeforeAjax: function() {
- this.tinyMCE_editor.save();
+ if (this.tinyMCE_editor) {
+ this.tinyMCE_editor.save();
+ }
},
onInitInstanceCallback: function(inst) {