Table Of Contents
 

WYSIWYG

Description


Displays a WYSIWYG HTML Editor. Places HTML code into database field.

Database Field


Database field should be of type text.

Usage


type="WYSIWYG"

The Toolbars


The WYSIWYG can be customised using the attribute toolbarSet.
E.g. toolbarSet="MEDIUM"... this can be either DEFAULT, CUSTOM, MEDIUM, ADVANCED

If custom, you can pass in the list of toolbars to use:
toolbars = "['Source','DocProps','-','Save','NewPage','Preview'"],['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],['OrderedList','UnorderedList','-','Outdent','Indent'],['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],['Link','Unlink','Anchor'],['Image','Flash','Table','Rule','SpecialChar','UniversalKey'],'/',['Style','FontFormat','FontName','FontSize'],['TextColor','BGColor']"

Other Options


Below are the options I generally use for WYSIWYG UDI interfaces:

        useTemplates="yes"
        FontFormats = "no"
        stylesheet="#APPLICATION.siteURL#css/edit.css" edit="yes" height="450"
        basehref="#APPLICATION.siteURL#"
        img_filepath="#APPLICATION.siteFilePath#contentfiles\images\"
        img_urlpath="#APPLICATION.siteURL#contentfiles/images/"
        file_filepath="#APPLICATION.siteFilePath#contentfiles\"
        file_urlpath="#APPLICATION.siteURL#contentfiles/"
        flash_filepath="#APPLICATION.siteFilePath#contentfiles\flash\"
        flash_urlpath="#APPLICATION.siteURL#contentfiles/flash/"
        type="wysiwyg"
        toolbarSet="MEDIUM"
        file_allowUpload="yes"
        file_allowUploadToRoot="no"<!--- The user should use the other folder --->
        file_allowCreateFolder="yes"
        file_allowCreateFolderInRoot="yes"
        img_allowUpload="yes"
        img_allowUploadToRoot="yes"
        img_allowCreateFolder="yes"
        img_allowCreateFolderInRoot="yes"
       
        listMode="1"
        required="no"
        note="#note#"


Link Browser


You can provide the URL to your own pop-up window link browser that could list all available links on the your site using the following syntax:

LinkBrowserURL="#APPLICATION.SAPAdminSiteURL##APPLICATION.teamworkCMSFolder#/pages/assist/browseForLink.cfm"
        LinkBrowserWindowWidth="350"
        LinkBrowserWindowHeight="150"
        ImageBrowserWindowWidth="630"
        ImageBrowserWindowHeight="500"