thyRichTextEdit

This class is a wrapper to permit ThyAPI applications/widgets to use the power of an existing Rich Text Editor, FCKeditor http://www.fckeditor.net/ (Thanks Frederico for the great work!!!).

It encapsulates all FCKEditor functions/methods in a ThyAPI like structure.  This garantees compatibility and makes it easier to manage releases and upgrades, and also incorporate ThyAPI design concept, that is to keep all visual elements on CSS.

Unfortunatly this version of thyRichTextEdit doesn’t permit the designer to edit FCKEditor style within its CSS classes... maybe in future versions

Summary
This class is a wrapper to permit ThyAPI applications/widgets to use the power of an existing Rich Text Editor, FCKeditor http://www.fckeditor.net/ (Thanks Frederico for the great work!!!)
Initialization Method
Returns the contents of the Rich Text Editor
Overwritten method that impossibilitates the developer to add childs to this widget, as this have no meaning.
Overwritten method that impossibilitates the developer to remove childs from this widget, as this have no meaning
Overwritten method that makes setHTML to have the same functionality as populate
FCK Editor doesn’t like ‘display: none’ property.
Removes all data from rich text
Removes all data from rich text
Sets the contents of the Rich Text Editor
Returns the HTML needed to insert FCK editor inside the thyAPI panel this class holds
Get the FCK element and perform some other operations upon creation

initThyRichTextEdit

p.initThyRichTextEdit = function ()

Initialization Method

sweepOut

p.sweepOut = function ()

Returns the contents of the Rich Text Editor

addChild

p.addChild = function ()

Overwritten method that impossibilitates the developer to add childs to this widget, as this have no meaning.

removeChild

p.removeChild = function ()

Overwritten method that impossibilitates the developer to remove childs from this widget, as this have no meaning

setHTML

p.setHTML = function (html)

Overwritten method that makes setHTML to have the same functionality as populate

setDisplay

p.setDisplay = function (b)

FCK Editor doesn’t like ‘display: none’ property.

This overloaded method garantees that on comming back from ‘display: none’ the Editor is editable

Private Methods

_cleanUp

p._cleanUp = function ()

Removes all data from rich text

_reset

Removes all data from rich text

_populateContents

p._populateContents = function (data)

Sets the contents of the Rich Text Editor

getInnerHTML

Returns the HTML needed to insert FCK editor inside the thyAPI panel this class holds

Events

_eventOnCreate

p._eventOnCreate = function ()

Get the FCK element and perform some other operations upon creation

p.initThyRichTextEdit = function ()
Initialization Method
p.sweepOut = function ()
Returns the contents of the Rich Text Editor
p.addChild = function ()
Overwritten method that impossibilitates the developer to add childs to this widget, as this have no meaning.
p.removeChild = function ()
Overwritten method that impossibilitates the developer to remove childs from this widget, as this have no meaning
p.setHTML = function (html)
Overwritten method that makes setHTML to have the same functionality as populate
p.setDisplay = function (b)
FCK Editor doesn’t like ‘display: none’ property.
p._cleanUp = function ()
Removes all data from rich text
p._populateContents = function (data)
Sets the contents of the Rich Text Editor
p._eventOnCreate = function ()
Get the FCK element and perform some other operations upon creation