List of usage examples for com.liferay.portal.util PropsValues DISCUSSION_COMMENTS_ALLOWED_CONTENT
String DISCUSSION_COMMENTS_ALLOWED_CONTENT
To view the source code for com.liferay.portal.util PropsValues DISCUSSION_COMMENTS_ALLOWED_CONTENT.
Click Source Link
From source file:com.liferay.comment.editor.configuration.internal.CommentEditorConfigContributor.java
License:Open Source License
@Override public void populateConfigJSONObject(JSONObject jsonObject, Map<String, Object> inputEditorTaglibAttributes, ThemeDisplay themeDisplay, RequestBackedPortletURLFactory requestBackedPortletURLFactory) { jsonObject.put("allowedContent", PropsValues.DISCUSSION_COMMENTS_ALLOWED_CONTENT); jsonObject.put("toolbars", JSONFactoryUtil.createJSONObject()); if (PropsValues.DISCUSSION_COMMENTS_FORMAT.equals("bbcode")) { String extraPlugins = jsonObject.getString("extraPlugins"); if (Validator.isNull(extraPlugins)) { extraPlugins = "bbcode"; } else if (!extraPlugins.contains("bbcode")) { extraPlugins = extraPlugins + ",bbcode"; }/*from w w w . j a v a 2s. c o m*/ jsonObject.put("extraPlugins", extraPlugins); } }
From source file:com.liferay.comment.sanitizer.internal.CommentSanitizerImpl.java
License:Open Source License
public CommentSanitizerImpl() { _commentAllowedContent = new CommentAllowedContent(PropsValues.DISCUSSION_COMMENTS_ALLOWED_CONTENT); }