public final class WysiwygUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper()
Returns the ObjectMapper.
|
static java.lang.String |
getWysiwygMatchedLanguage(java.lang.String lang)
Returns the WYSIWYG language from the JCMS language.
|
static boolean |
isAutoConvertWiki2Wysiwyg(javax.servlet.http.HttpServletRequest request)
Checks if the wiki fields must be converted automatically to wysiwyg fields.
|
static void |
writeTinyMCELangFile(java.lang.String jcmsLang,
java.util.Map<java.lang.String,java.lang.String> i18nMap,
java.io.File outDirectory)
Write a TinyMCE javascript language file, from the specified map of I18N properties.
|
public static void writeTinyMCELangFile(java.lang.String jcmsLang,
java.util.Map<java.lang.String,java.lang.String> i18nMap,
java.io.File outDirectory)
throws java.io.IOException
jcmsLang - the JCMS language code for which file is writteni18nMap - a map of I18N propertiesoutDirectory - the directory in which file must be writenjava.io.IOException - if file could not be writtenpublic static java.lang.String getWysiwygMatchedLanguage(java.lang.String lang)
lang - JCMS languagepublic static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
ObjectMapperpublic static boolean isAutoConvertWiki2Wysiwyg(javax.servlet.http.HttpServletRequest request)
The wiki fields are converted automatically to wysiwyg fields if the given request has the parameter
WysiwygConstants.AUTO_CONVERT_WIKI_2_WYSIWYG or the property 'wiki.auto-convert-to-wysiwyg' is true.
request - HttpServletRequesttrue if the wiki fields are converted to wysiwyg fields, false insteadCopyright © 2001-2019 Jalios SA. All Rights Reserved.