Class WysiwygUtils

java.lang.Object
com.jalios.jcms.wysiwyg.WysiwygUtils

public final class WysiwygUtils extends Object
  • Method Details

    • writeTinyMCELangFile

      public static void writeTinyMCELangFile(String jcmsLang, Map<String,String> i18nMap, File outDirectory) throws IOException
      Write a TinyMCE javascript language file, from the specified map of I18N properties.
      Parameters:
      jcmsLang - the JCMS language code for which file is written
      i18nMap - a map of I18N properties
      outDirectory - the directory in which file must be writen
      Throws:
      IOException - if file could not be written
    • getWysiwygMatchedLanguage

      public static String getWysiwygMatchedLanguage(String lang)
      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