Reference - SS.control.richtextbox - Rich Text Box
The cross-browser compatible JavaScript HTML richtextbox control extends the capabilities of a standard plain text input field. By providing the some of the functionality available in a full word processor application such as bold, italic, underline, font styling and bullet / numbering, an end user has the flexibility to do more.
Attributes:
Functions:
Members:
Attributes
canvascolor
Default Background Color
Defines the default background color of the richtextbox canvas area.
{String} - default = "#FFF"
v1.0.2.20080831
[Top]
css
Cascading Style Sheet
Style sheet for the control.
{String} - default = "SS_control_richtextbox"
v1.0.2.20080831
[Top]
font
Default Font
Defines the default font for text where no font style has been specified.
{String} - default = "Arial"
v1.0.2.20080831
[Top]
fontsize
Default Font Size
Defines the default font size for text where no font style has been specified.
Acceptable values are: "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large"
These values map to the 1 to 7 inclusive font size range.
Acceptable values are: "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large"
These values map to the 1 to 7 inclusive font size range.
{String} - default = "small"
v1.0.2.20080831
[Top]
onchange
On Change Event Called Function
String function which is evaluated and then called when the contents of the richtextbox changes.
Unlike the typical onchange function used on a standard textbox, the richtextbox
onchange fires whenever the contents changes.
f - {String} - Javascript function.
v1.0.2.20080831
[Top]
readonly
Read Only
Makes the contents of the richtextbox readonly.
b - {Boolean} (default = false)
v1.0.2.20080831
[Top]
value
Value of Contents
This attribute contains the contents of the richtextbox control. Changing this value
will automatically update the contents of the richtextbox. E.g.
$gc("myrichtextbox").value = "<b>Hello World</b>";
will set the contents of the richtextbox to the bold phrase Hello World.
If the richtextbox control was formed from an input field then it is also possible to set the value of that input field which will then change the contents of the richtextbox control. See this example on how to get / set the contents of the richtextbox control.
$gc("myrichtextbox").value = "<b>Hello World</b>";
will set the contents of the richtextbox to the bold phrase Hello World.
If the richtextbox control was formed from an input field then it is also possible to set the value of that input field which will then change the contents of the richtextbox control. See this example on how to get / set the contents of the richtextbox control.
v1.0.2.20080831
[Top]
visible
Control Visible
Sets the visibility of the window. By default the control is visible. Use this in conjunction with
the style style="display:none" to hide the rendering process when
the page loads. The visible flag will override the display style when the control is rendered.
b - {Boolean} (default = true)
v1.0.2.20080831
[Top]
Functions
Members
buttons
Content Manipulation Buttons
Array containing the parameters needed to build the buttons in the richtextbox control
v1.0.2.20080831
[Top]
id
Id
Id of the element that the richtextbox is built on e.g. input
v1.0.2.20080831
[Top]
idb
Id Button Bar
Id of the button bar element of the richtextbox.
v1.0.2.20080831
[Top]
idg
Id Control Group
Id of the element which holds all of the elements that makes up the richtextbox control.
v1.0.2.20080831
[Top]