There are some situations when a user may wish to use a rich text editor control that allows a text area to be recorded, but with the addition of various style effects e.g. Bold, underline, bullets, paragraph, etc.
WebMaker is shipped with the dojo framework already included in each project, which allows a number of more rarely used controls to be attached to a field.
In order to add a Rich Text Editor control you will need to perform the following steps:
Note: If you require further details on the specific dojo control, or you wish to add further levels of customisation, please visit the following link:
http://dojotoolkit.org/reference-guide/dijit/Editor.html#dijit-editor
WebMaker is shipped with the dojo framework already included in each project, which allows a number of more rarely used controls to be attached to a field.
In order to add a Rich Text Editor control you will need to perform the following steps:
- The first step is to visit the Field Details page of FormMaker and select the Page Details at the top of the left hand panel tree structure. Open up the Page Events section and add a new event. The values required are Event of onbeforeload , Action of Custom Script and then script text of dojo.require('dijit.Editor');
[/*][*] You will then need to have added a 'Text Area' field control. For this control open the Data Constraints section on the Field Details.
[/*][*] Within the Data Constraints you will need to ensure that the Data Type is 'String'
[/*][*] You will then need to add a Custom Attribute with a Name of dojoType and Value of dijit.Editor
[/*][*] The dojo editor has plugins that can add additional functionality. For example, to add colour selection options you would need to add another Custom Attribute with a Name of extraPlugins and Value of ["foreColor", "hiliteColor"], and adjust the event to also contain dojo.require('dijit._editor.plugins.TextColor');[/*]
Note: If you require further details on the specific dojo control, or you wish to add further levels of customisation, please visit the following link:
http://dojotoolkit.org/reference-guide/dijit/Editor.html#dijit-editor
RE: How do I add a Dojo Rich Text Editor control?
Note: This does not use dojo, but another editor that is currently used by the Studio itself.