Fórum
Changing root context broke images in ckeditor
Thomas C, modificado 11 Anos atrás.
Changing root context broke images in ckeditor
New Member Postagens: 11 Data de Entrada: 25/01/12 Postagens Recentes
Hi,
When I change the context (ie: portal.ctx=/portal), I don't manage to display images in web content with ckeditor.
1) Change context
2) New web content
3) Choose image within ckeditor filemanager
4) The image isn't displayed in the web content (A red cross is just shown in the editor)
Liferay version: 6.1
Environment: Tomcat 7
How can I solve it?
Regards,
Tom
When I change the context (ie: portal.ctx=/portal), I don't manage to display images in web content with ckeditor.
1) Change context
2) New web content
3) Choose image within ckeditor filemanager
4) The image isn't displayed in the web content (A red cross is just shown in the editor)
Liferay version: 6.1
Environment: Tomcat 7
How can I solve it?
Regards,
Tom
Thomas C, modificado 11 Anos atrás.
RE: Changing root context broke images in ckeditor (Resposta)
New Member Postagens: 11 Data de Entrada: 25/01/12 Postagens Recentes
I find a fix in com.liferay.portal.editor.fckeditor.command.CommandArgument :
add
in _getFiles method.
add
/* Fix portal ctx */
String portalCtx = PrefsPropsUtil.getString(PropsKeys.PORTAL_CTX);
if (Validator.isNotNull(portalCtx) && !portalCtx.equals("/")){
sb.append(portalCtx);
}
/* End Fix portal ctx */
in _getFiles method.