Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void populateConfigJSONObject(JSONObject jsonObject, Map<String, Object> inputEditorTaglibAttributes,
- ThemeDisplay themeDisplay, RequestBackedPortletURLFactory requestBackedPortletURLFactory) {
- String extraPlugins = jsonObject.getString("extraPlugins");
- String plugins = jsonObject.getString("plugins");
- if (!extraPlugins.contains("language")) {
- extraPlugins += ",language";
- }
- jsonObject.put("extraPlugins", extraPlugins);
- JSONArray toolbarLiferay = jsonObject.getJSONArray("toolbar_liferay");
- toolbarLiferay = getToolbarLiferayJSONArray(inputEditorTaglibAttributes);
- jsonObject.put("toolbar_liferay", toolbarLiferay);
- }
- protected JSONArray getToolbarLiferayJSONArray(Map<String, Object> inputEditorTaglibAttributes) {
- return JSONUtil.putAll(
- toJSONArray("['Bold', 'Italic', 'Underline', 'Strike', '-', 'Subscript', 'Superscript', '-'"
- + ", 'RemoveFormat', 'Language', 'Timestamp']")
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement