﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
11335	AJAX submit and load/initialization of CKEditor fails in Struts 2 application using Struts jQuery plugin	Ajay		"1. When the CKEditor is created in FORM and the form is submitted using struts jquery SUBMIT, data entered in the editor doesn't flow to struts ACTION. Pasting here code from the JSP that has the CKEDITOR control with AJAX submit

{{{
<%@taglib prefix=""s"" uri=""/struts-tags"" %>
<%@taglib uri=""http://ckeditor.com"" prefix=""ckeditor"" %>
<form id=""commentForm"">
    <table>
    <tr>
        <td>
                <s:textarea cols=""40"" id=""someArea"" name=""someArea"" rows=""1""></s:textarea>
                <ckeditor:replace replace=""someArea"" basePath=""${contextPath}/ckeditor/""/>
        </td>
    </tr>
</table>

</form>
<s:url var=""saveCommentVar"" action=""someAction"" namespace=""/someNamesapce""/>
<sj:submit name=""submit"" value=""Submit"" href=""%{saveCommentVar}"" formIds=""commentForm"" targets=""successDiv""/>
<div id=""successDiv""></div>
}}}

2. When a JSP containg the CKEditor is loaded into main JSP using AJAX fails to initialize and it shows TEXTAREA control instead of the CKEDITOR.

{{{
    <s:url var=""openJSPFrom1"" action=""someOpenJspAction"" namespace=""/someNamespace""/>
    <sj:a href=""%{openJSPFrom1}"" targets=""topicCommentDiv"">Click here</sj:a> to open CKEDITOR
    <div id=""topicCommentDiv""></div>
}}}

Please let me know if more information is required. "	Bug	closed	Normal		Server : Java		expired		
