List of usage examples for com.liferay.portal.kernel.parsers.bbcode BBCodeTranslatorUtil getEmoticonDescriptions
public static String[] getEmoticonDescriptions()
From source file:com.liferay.frontend.editor.ckeditor.web.editor.configuration.CKEditorBBCodeConfigContributor.java
License:Open Source License
@Override public void populateConfigJSONObject(JSONObject jsonObject, Map<String, Object> inputEditorTaglibAttributes, ThemeDisplay themeDisplay, RequestBackedPortletURLFactory requestBackedPortletURLFactory) { super.populateConfigJSONObject(jsonObject, inputEditorTaglibAttributes, themeDisplay, requestBackedPortletURLFactory); jsonObject.put("allowedContent", Boolean.TRUE); jsonObject.put("enterMode", 2); jsonObject.put("extraPlugins", "a11yhelpbtn,bbcode,itemselector,wikilink"); jsonObject.put("fontSize_defaultLabel", "14"); jsonObject.put("fontSize_sizes", "10/10px;12/12px;14/14px;16/16px;18/18px;24/24px;32/32px;48/48px"); jsonObject.put("format_tags", "p;pre"); jsonObject.put("imagesPath", HtmlUtil.escape(themeDisplay.getPathThemeImages()) + "/message_boards/"); jsonObject.put("lang", getLangJSONObject(inputEditorTaglibAttributes)); jsonObject.put("newThreadURL", MBThreadConstants.NEW_THREAD_URL); jsonObject.put("removePlugins", "bidi,div,elementspath,flash,forms,indentblock,keystrokes,link," + "maximize,newpage,pagebreak,preview,print,save,showblocks," + "templates,video"); jsonObject.put("smiley_descriptions", toJSONArray(BBCodeTranslatorUtil.getEmoticonDescriptions())); jsonObject.put("smiley_images", toJSONArray(BBCodeTranslatorUtil.getEmoticonFiles())); jsonObject.put("smiley_path", HtmlUtil.escape(themeDisplay.getPathThemeImages()) + "/emoticons/"); jsonObject.put("smiley_symbols", toJSONArray(BBCodeTranslatorUtil.getEmoticonSymbols())); jsonObject.put("toolbar_bbcode", getToolbarsBBCodeJSONArray(inputEditorTaglibAttributes)); jsonObject.put("toolbar_phone", getToolbarsPhoneJSONArray(inputEditorTaglibAttributes)); jsonObject.put("toolbar_tablet", getToolbarsTabletJSONArray(inputEditorTaglibAttributes)); }