ページコメントで画像の添付をしたいです。
written-by
Hamasaki Yutaro
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
legacy-article
learn-legacy-article-disclaimer-text
問題
- ページコメントウィジェットでコメント時に画像をコメント欄にドラッグアンドドロップすると、次のエラーが出て、コメント欄に画像を貼れません。
環境
解決
- 次の手順にて、ページコメントで画像の貼り付けとコメントが可能になります。
設定後はコメント欄がサニタイズの対象外となる点にご留意ください。
必要に応じて、カスタマイズをご検討ください。
1. プロパティへ以下を追加:
discussion.comments.allowed.content=a[href];em;p;span[class];strong;u;br;img[src]
2. コントロールパネル>設定>システム設定>セキュリティ:セキュリティツール>システムスコープ:AntiSamy サニタイザー
から、以下のコンポーネントをホワイトリストに追加:
com.liferay.message.boards.model.MBMessage
3. コントロールパネル>設定>システム設定>プラットフォーム:モジュール・コンテナ>システムスコープ:コンポーネントブラックリスト
から、以下のコンポーネントをブラックリストに追加:
com.liferay.comment.sanitizer.internal.CommentSanitizerImpl
did-this-article-resolve-your-issue