#REM Parameters: #SNIPPET.Name ... ID of input field #SNIPPET.Head ... Title/label for input field (optional) #SNIPPET.TranslationHead ... Title/label for input field (optional) (label tag not visible) #SNIPPET.Help ... Help text for input field (optional) #SNIPPET.InputName ... form input name (optional), if omitted #SNIPPET.Name is used #SNIPPET.Value ... Value for input field (optional, default is #GET(#SNIPPET.InputName)) #SNIPPET.Size ... change height of editor Medium is standard other valid values are Small, Large and ExtraLarge #SNIPPET.Disabled ... disable textarea #SNIPPET.SavePage ... savePage on Editor close #SNIPPET.BlogPost ... BlogPost mode #SNIPPET.Mandatory ... Show mandatory star on Head/TranslationHead input (optional, boolean) #SNIPPET.HideToolbarOnStartup .. Nomen est omen TODO #SNIPPET.NoToolbar... TODO #SNIPPET.PluginOptions ... TODO #SNIPPET.ShowPreview... Forces the editor to convert em to i tags and loads epOnChange plugin #SNIPPET.SourceMode... If set to 1 the editor will be started in source mode #SNIPPET.EnterMode... Changes behaviour of ENTER key. Default is "CKEDITOR.ENTER_P", other values are "CKEDITOR.ENTER_BR" and "CKEDITOR.ENTER_DIV" #SNIPPET.AdditionalCSS... Additional CSS class #SNIPPET.DataDescription... Headline for additional information in background text in wysiwyg area (needs "EditableDocumentPart" for #SNIPPET.AdditionalCSS) #SNIPPET.DataDescriptionMore... Text for additional information in background text in wysiwyg area (needs "EditableDocumentPart" for #SNIPPET.AdditionalCSS) #SNIPPET.Placeholder... JSON string containing placeholder #SNIPPET.ToolbarClass... String name of css class describing the visible toolbar buttons #SNIPPET.Translatable... shows icon and tooltip for translatable fields #SNIPPET.NoLabel... do not show label (optional, boolean) #SNIPPET.Labeltype... sets type of label. Default is label, but h1 - h6 are also possible #SNIPPET.Bootstrap... use botstrap grid (optional, boolean) #SNIPPET.Object ... object of the input data field (optional, object) #SNIPPET.HideTranslationMissingWarning ... do not show any tooltip for missing translations (optional, boolean) Example: #FUNCTION("SNIPPET", "INC-WYSIWYG", "Name,Value,Head,Help", "Description", #Description, "{Description}", "{BubbleHelpDescription}") #SNIPPET("INC-WYSIWYG", "Name,Value,Head,Help", "Description", #Description, "{Description}", "{BubbleHelpDescription}") #ENDREM #IF(NOT #SNIPPET.NoLabel) #IF(#DEFINED(#SNIPPET.Bootstrap))
#ELSE
#ENDIF #IF(#DEFINED(#SNIPPET.TranslationHead) OR #DEFINED(#SNIPPET.Head)) <#IF(#DEFINED(#SNIPPET.Labeltype))#SNIPPET.Labeltype#ELSE#SPACE[0]label#ENDIF class="ep-label" for="#SNIPPET.Name"> #IF(#DEFINED(#SNIPPET.TranslationHead))#SNIPPET.TranslationHead#ELSE#SNIPPET.Head#ENDIF#IF(#SNIPPET.Mandatory)*#ENDIF #ENDIF #IF(#DEFINED(#SNIPPET.Help)) #SNIPPET.Help[0] #ENDIF #IF(#DEFINED(#SNIPPET.Bootstrap))
#ENDIF #IF(#SNIPPET.Translatable) #IF(#DEFINED(#SNIPPET.Object)) #SNIPPET("INC-I18n-Tooltip", "AttributeName,Object", #SNIPPET.InputName, #SNIPPET.Object) #ELSIF(#DEFINED(#SNIPPET.HideTranslationMissingWarning)) #SNIPPET("INC-I18n-Tooltip", "AttributeName,HideTranslationMissingWarning", #SNIPPET.InputName, #SNIPPET.HideTranslationMissingWarning) #ELSE #SNIPPET("INC-I18n-Tooltip", "AttributeName", #SNIPPET.InputName) #ENDIF #ENDIF #IF(NOT #DEFINED(#SNIPPET.TranslationHead) AND NOT #DEFINED(#SNIPPET.Head) AND NOT #DEFINED(#SNIPPET.Help)) #ENDIF #IF(#DEFINED(#SNIPPET.Bootstrap))
#ELSE
#ENDIF #ENDIF #IF(#DEFINED(#SNIPPET.Bootstrap))
#ENDIF
#IF(#DEFINED(#SNIPPET.Value))#SNIPPET.Value#ELSIF(#DEFINED(#SNIPPET.InputName) AND #DEFINED(#GET(#SNIPPET.InputName)))#FORMAT(#GET(#SNIPPET.InputName), "html")#ENDIF
#IF(#DEFINED(#SNIPPET.Bootstrap))
#ENDIF