<#assign textEditorCoreName = "fr.paris.lutece.portal.service.editor.RichTextEditorBackOfficeMethod"?new()() > <#assign textEditorBlogName><#if !dskey('blog.advanced_parameters.editor')?starts_with('DS') || dskey('blog.advanced_parameters.editor')?starts_with('DS') !=''>${dskey('blog.advanced_parameters.editor')} <#assign textEditorName><#if textEditorBlogName !=''>${textEditorBlogName}<#else>${textEditorCoreName!} <#assign blogEditorFile=.get_optional_template('blog_${textEditorName}.html')> <#assign is_content_type=dskey('blog.advanced_parameters.use_content_type')?boolean> <#if textEditorName?trim !=''> <#if blogEditorFile.exists> <@blogEditorFile.include /> <#else> <#assign coreEditorFile=.get_optional_template('/admin/util/editor/editor_${textEditorName}.html')> <#if coreEditorFile.exists><@coreEditorFile.include /> <#else> <#macro initEditor > <@row> <@columns> <@callOut color='warning w-25 mx-auto' titleLevel='h3' callOutIcon='alert-triangle' title='Aucun editeur disponible !' /> <#macro blogJSInit requiredTags=0> <@initToast id='blogToastContainer' showAll=false > <@addToast id='blogToast' content='to change' /> <#function getFileExtension fileName> <#local lastDotIndex = fileName?last_index_of(".")> <#if lastDotIndex != -1> <#return fileName?substring(lastDotIndex + 1) > <#else> <#return x >