掲示板

Changing root context broke images in ckeditor

11年前 に Thomas C によって更新されました。

Changing root context broke images in ckeditor

New Member 投稿: 11 参加年月日: 12/01/25 最新の投稿
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
11年前 に Thomas C によって更新されました。

RE: Changing root context broke images in ckeditor (回答)

New Member 投稿: 11 参加年月日: 12/01/25 最新の投稿
I find a fix in com.liferay.portal.editor.fckeditor.command.CommandArgument :

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.