#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.CssClass ... Additional Class for textarea #SNIPPET.Disabled ... disable textarea #SNIPPET.OnKeyUp ... onkeyup js function attached to textarea #SNIPPET.OnChange ... onchange js function attached to textarea #SNIPPET.InsertCompleteURL ... links are always inserted an absolute url #SNIPPET.OnClick ... js function that gets called when the "open dialog" button is clicked #SNIPPET.SetValue ... js function that gets called to manipulate the content before editing #SNIPPET.GetValue ... js function that gets called when the manipulation of the content is applied #SNIPPET.UseAbsolutePath ... use absolute path for urls #SNIPPET.SavePage ... savePage on Editor close #SNIPPET.InitDialog ... js function that gets called after dialog was opend (to adjust tools etc..) - parameter: modalDialog widget #SNIPPET.Inline Parameters only for InlineMode #SNIPPET.ZoomLevel ... only for the inline mode - changes the zoom of the visible content #SNIPPET.EditorHeight ... a px value for the Height of the tinyMCE Editor #SNIPPET.EditorWidth ... a px value for the Width of the tinyMCE Editor #SNIPPET.Hidden ... is the current Editor hidden so it could not be build remember to send a signal for a hidden editor when it become visible to build the editor #SNIPPET.Active ... is the InlineTinyMCE already open and ready for inputs active and hidden could not be set true together #SNIPPET.HoverMode ... shows the Editor the complete Content on mouseover - default false 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(#DEFINED(#SNIPPET.Inline)) #IF(#DEFINED(#SNIPPET.TranslationHead) OR #DEFINED(#SNIPPET.Head) OR #DEFINED(#SNIPPET.Help))
#IF(#DEFINED(#SNIPPET.TranslationHead)) #ENDIF #IF(#DEFINED(#SNIPPET.Head))  #IF(#DEFINED(#SNIPPET.Help)) #SNIPPET.Help #ENDIF #ENDIF
#ENDIF
#IF(#DEFINED(#SNIPPET.Value))#FORMAT(#SNIPPET.Value,"correcthtml")#ELSIF(#DEFINED(#SNIPPET.InputName) AND #DEFINED(#GET(#SNIPPET.InputName)))#FORMAT(#GET(#SNIPPET.InputName),"correcthtml")#ENDIF
#ELSE
#IF(#DEFINED(#SNIPPET.TranslationHead)) #ENDIF #IF(#DEFINED(#SNIPPET.Head))  #IF(#DEFINED(#SNIPPET.Help)) #SNIPPET.Help #ENDIF #ENDIF
#ENDIF