Package com.jalios.jcms.wysiwyg
Class WysiwygUtils
java.lang.Object
com.jalios.jcms.wysiwyg.WysiwygUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.ObjectMapperReturns the ObjectMapper.static StringReturns the WYSIWYG language from the JCMS language.static voidWrite a TinyMCE javascript language file, from the specified map of I18N properties.
-
Method Details
-
writeTinyMCELangFile
public static void writeTinyMCELangFile(String jcmsLang, Map<String, String> i18nMap, File outDirectory) throws IOExceptionWrite a TinyMCE javascript language file, from the specified map of I18N properties.- Parameters:
jcmsLang- the JCMS language code for which file is writteni18nMap- a map of I18N propertiesoutDirectory- the directory in which file must be writen- Throws:
IOException- if file could not be written
-
getWysiwygMatchedLanguage
Returns the WYSIWYG language from the JCMS language. If the mapping is not found, it returns the JCMS language.- Parameters:
lang- JCMS language- Returns:
- WYSIWYG language
-
getObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()Returns the ObjectMapper.- Returns:
ObjectMapper
-