<#if !webapp_url?has_content><#assign webapp_url = '' /> <#macro initEditor editorWidth=0 cssFiles='' type='' insert='"pagelinkservice","library"' selector='.richtext' config={}> <#assign editorLocale='fr_FR' /> <#assign themeEditorConfig={}> <#assign themeEditorExtraConfig=''> <#local toolbar='' /> <#-- We only have the language pack for French (France) installed in webapp/js/editors/tinymce/langs --> <#-- Some lutece plugins pass locale.getLanguage() (="fr"), some pass the locale object (toString="fr_FR", or more complicated...) --> <#-- Force it here because if it is a wrong value, tinyMCE does not load --> <#if locale?? && (2 <= locale?string?length) && (locale?string?substring(0,2) == "fr")><#assign editorLocale='fr_FR' /> <#if cssFiles==""><#local cssFiles="themes/skin/${commonsGlobalThemeCode}/css/theme.min.css, themes/skin/shared/css/site.css, themes/skin/shared/css/shared.css, css/site.css" /> <#local optEditorConfig=.get_optional_template('editor_tinymce_theme.html')> <#if optEditorConfig.exists><@optEditorConfig.include />