Class CMS_textEditor

Description

Class CMS_dialog

Interface generation

Located in /automne/classes/dialogs/texteditor.php (line 29)

CMS_grandFather
   |
   --CMS_textEditor
Method Summary
 void __construct (string $form, string $field, string $initialContent, string $userAgent, string $preferredEditor,  &$language, [ $textareaWidth = 750], [ $textareaRows = 15], CMS_language $language)
 string getHTML ()
 string getJavascript ()
 void setEditorAttributes ($attrs $attrs)
 void setEditorConfigAttributes ($attrs $attrs)
Methods
Constructor __construct (line 104)

Constructor.

  • access: public
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
getEditorFromParams (line 200)

Get a CMS_textEditor from given parameters

  • return: or null if error
CMS_textEditor getEditorFromParams (mixed $attrs)
  • mixed $attrs: array(), $attrs each key => value is an attribute of this class or an attribute to fckeditor
getHTML (line 150)

Returns the html needed by the editor

  • access: public
string getHTML ()
getJavascript (line 184)

Returns the javascript needed by the editor, which will be included in the <head> part

  • access: public
string getJavascript ()
setEditorAttributes (line 122)

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
setEditorConfigAttributes (line 137)

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()
Class Constants

Documentation generated on Wed, 15 Feb 2012 15:40:10 +0100 by phpDocumentor 1.4.3