<#-- @macro initEditor --> <#-- @title Init FO editor BBCode Editor --> <#-- ----------------------------------------------------------------------------- --> <#-- @tag | editor, front, bbcode , sceeditor --> <#-- ----------------------------------------------------------------------------- --> <#-- @summary | Add BBCODE editor to textarea with id "sceeditor" -default conf- --> <#-- ------------------------------------------------------------------------------------------ --> <#-- name | type | default | List of values | Description --> <#-- ------------------------------------------------------------------------------------------ --> <#-- @param editorSelector | text | 'richtext' | | 'sceeditor' is the default id set for textarea. --> <#-- @param skin | text | 'default' | ['default','defaultdark','modern','office', 'office-toolbar', 'square'] | default is the default theme. Possible value --> <#-- @param format | text | 'bbcode' | ['bbcode','xhtml'] | Default is bbcode can be set to xhtml --> <#-- @param icons | text | '' | ['material','monocons'] | Default '' --> <#-- @param plugins | list - text | '' | ['alternative-lists','autosave' ,'autoyoutube', 'dragdrop', 'format','plaintext','undo'] | Default is '' --> <#-- ----------------------------------------------------------------------------- --> <#macro initEditor editorSelector='.richtext' editorPath='js/editors/sceditor' language=.lang emo=true skin='default' format='bbcode' icons='' plugins='' deprecated...> <@deprecatedWarningSite args=deprecated /> <#assign editorPath='${editorPath!}' > <#assign isEditorLoaded=false> <#if editorSelector != '' && editorPath !='' > <#if !isEditorLoaded> <#assign isEditorLoaded=true > <#if format == 'bbcode'> <#else> <#else>