Author: Alex.Kolonitsky
Date: 2009-07-15 09:36:13 -0400 (Wed, 15 Jul 2009)
New Revision: 14927
Modified:
branches/community/3.3.X/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java
Log:
Javascript for onsetup in rich:editor is incorrect
https://jira.jboss.org/jira/browse/RF-7362
Modified:
branches/community/3.3.X/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java
===================================================================
---
branches/community/3.3.X/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java 2009-07-15
11:41:35 UTC (rev 14926)
+++
branches/community/3.3.X/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java 2009-07-15
13:36:13 UTC (rev 14927)
@@ -342,7 +342,7 @@
+ onchange + "\n" + "};\n", null);
}
if (onsetup != null && onsetup.length() > 0) {
- writer.writeText("tinyMceParams.setup = function (event, ed) {\n"
+ writer.writeText("tinyMceParams.setup = function (ed, event) {\n"
+ onsetup + "\n" + "};\n", null);
}