Fórum
CKEditor - Uncaught TypeError Cannot read property 'length' of undefined
George Stafford, modificado 11 Anos atrás.
CKEditor - Uncaught TypeError Cannot read property 'length' of undefined
Junior Member Postagens: 62 Data de Entrada: 01/10/12 Postagens Recentes
So am having this exact error message and come across this bug posting:
LPS-22864
Awesome, it even has a patch. But it is apparently for a different version of Liferay than the one I have. When I look at the ckeditor.jsp file in \ROOT\html\js\editor\ckeditor.jsp I do not see the same code on the same lines. Searching for these code bits also appears different. Case in point:
Patch Code:
CE 6.1.1 Code:
any ideas?
LPS-22864
Awesome, it even has a patch. But it is apparently for a different version of Liferay than the one I have. When I look at the ckeditor.jsp file in \ROOT\html\js\editor\ckeditor.jsp I do not see the same code on the same lines. Searching for these code bits also appears different. Case in point:
Patch Code:
<%
String connectorURL = HttpUtil.encodeURL(mainPath + "/portal/fckeditor?p_l_id=" + plid + "&doAsUserId=" + HttpUtil.encodeURL(doAsUserId));
%>
CE 6.1.1 Code:
<%
StringBundler sb = new StringBundler(10);
sb.append(mainPath);
sb.append("/portal/fckeditor?p_l_id=");
sb.append(plid);
sb.append("&p_p_id=");
sb.append(HttpUtil.encodeURL(portletId));
sb.append("&doAsUserId=");
sb.append(HttpUtil.encodeURL(doAsUserId));
sb.append("&doAsGroupId=");
sb.append(HttpUtil.encodeURL(String.valueOf(doAsGroupId)));
sb.append(fileBrowserParams);
String connectorURL = HttpUtil.encodeURL(sb.toString());
%>
any ideas?
George Stafford, modificado 11 Anos atrás.
RE: CKEditor - Uncaught TypeError Cannot read property 'length' of undefine
Junior Member Postagens: 62 Data de Entrada: 01/10/12 Postagens Recentes
Anyone had any luck with this? it's causing the editor to not load at all and kind of hard to work in the system without an editor