\Horde_Editor

The Horde_Editor:: package provides an API to generate the code necessary for embedding javascript RTE editors in a web page.

Summary

Methods
Properties
Constants
__construct()
initialize()
getJS()
supportedByBrowser()
No public properties found
No constants found
No protected methods found
$_browser
$_js
N/A
No private methods found
No private properties found
N/A

Properties

$_browser

$_browser : \Horde_Browser

A browser detection object.

Type

\Horde_Browser

$_js

$_js : string

Javascript code to init the editor.

Type

string

Methods

__construct()

__construct(\Horde_Browser  $browser) 

Constructor.

Parameters

\Horde_Browser $browser

initialize()

initialize(array  $params = array()) 

Initialize the editor.

Parameters

array $params

Additional parameters.

getJS()

getJS() : array

Returns the JS code needed to instantiate the editor.

Returns

array —

Two keys:

  • files: (array) Javascript files that need to be loaded by browser.
  • scrips: (array) Code that needs to be run on the browser.

supportedByBrowser()

supportedByBrowser() : boolean

Does the current browser support the Horde_Editor driver.

Returns

boolean —

True if the browser supports the editor.