#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')}#if>#assign>
<#assign textEditorName><#if textEditorBlogName !=''>${textEditorBlogName}<#else>${textEditorCoreName!}#if>#assign>
<#assign blogEditorFile=.get_optional_template('blog_${textEditorName}.html')>
<#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 />#if>
#if>
<#else>
<#macro initEditor >
<@row>
<@columns>
<@callOut color='warning w-25 mx-auto' titleLevel='h3' callOutIcon='alert-triangle' title='Aucun editeur disponible !' />
@columns>
@row>
#macro>
#if>
<#macro blogJSInit requiredTags=0>
<@initToast id='blogToastContainer' showAll=false >
<@addToast id='blogToast' content='to change' />
@initToast>
#macro>
<#function getFileExtension fileName>
<#local lastDotIndex = fileName?last_index_of(".")>
<#if lastDotIndex != -1>
<#return fileName?substring(lastDotIndex + 1) >
<#else>
<#return x >
#if>
#function>