Constructor.
void
__construct
(
string $form,
string $field,
string $initialContent,
string $userAgent,
string $preferredEditor,
&$language, [
$textareaWidth =
750], [
$textareaRows =
15],
CMS_language $language)
-
string
$form: The name of the form
-
string
$field: The name of the form hidden field which should receive the content
-
string
$initialContent: The initial content
-
string
$userAgent: The user agent string
-
string
$preferredEditor: The name of the user preferred editor (useless since V4)
-
CMS_language
$language: The user language
-
&$language
-
$textareaWidth
-
$textareaRows
Get a CMS_textEditor from given parameters
-
mixed
$attrs: array(), $attrs each key => value is an attribute of this class or an attribute to fckeditor
Returns the html needed by the editor
string
getHTML
()
Returns the javascript needed by the editor, which will be included in the <head> part
string
getJavascript
()
Stores editor attributes
void
setEditorAttributes
($attrs $attrs)
-
$attrs
$attrs: array(), Array of attributes for fckeditor editor or even any editor ex : array('ToolbarSet'=>'Basic', 'Width' => 200, 'Height' => 400), each array key is an attribute of class FCKeditor
Stores editor config attributes
void
setEditorConfigAttributes
($attrs $attrs)
-
$attrs
$attrs: array(), Array of attributes for fckeditor editor or even any editor ex : array('ToolbarSet'=>'Basic', 'Width' => 200, 'Height' => 400), each array key is an attribute of class FCKeditor
Inherited Methods
Inherited From CMS_grandFather
CMS_grandFather::autoload()
CMS_grandFather::hasError()
CMS_grandFather::log()
CMS_grandFather::PHPErrorHandler()
CMS_grandFather::raiseError()
CMS_grandFather::setDebug()
CMS_grandFather::setLog()
CMS_grandFather::_raiseError()
CMS_grandFather::__call()