Setting HTML content and format

These properties and methods can be used to set the HTML code to be edited and to configure the format of generated HTML code.

// set a stylesheet to style the appearance of content in the editor:
$editor->addStylesheet('http://www.something.com/style.css');

// set the format for generated HTML:
$editor->htmlVersion 'XHTML 1.0 Transitional';

// set the code to be edited:
$html '

something..

';
$editor->value $html;

// give the editor a name, equivalent to the name attribute on a textarea tag:
$editor->name 'content';


 

addCSSText
addCSSText Availability: >= 3.0 Type: Object Method Description: Can be
addStylesheet
addStylesheet Availability: >= 3.0 Type: Object Method Description: Allows you
baseURL
baseURL Availability: >= 3.0 Type: Object Property Description: Sets the
doctype
doctype Availability: >= 3.0 Type: Object Property Description: Sets the
emptyValue
emptyValue Availability: >= 3.0.3 Type: Object Property Description: Sets the
encodeURLs
encodeURLs Availability: >= 3.0 Type: Object Property Description: Sets whether
escapeCharacters
escapeCharacters Availability: >= 3.0 Type: Object Property Description: Whether to
escapeCharactersMapping
escapeCharactersMappings Availability: >= 3.0 Type: Object Property Description: Syntax:
escapeCharactersRange
escapeCharactersRange Availability: >= 3.0 Type: Object Property Description: Syntax:
fragmentCSSText
fragmentCSSText Availability: >= 3.0 Type: Object Property Description: Arbitrary CSS
fragmentStylesheet
fragmentStylesheet Availability: >= 3.0 Type: Object Property Description: The URL
fullURLs
fullURLs Availability: >= 3.0 Type: Object Property Description: Whether to
guidelines
guidelines Availability: >= 3.0 Type: Object Property Description: Whether the
htmlCharset
htmlCharset Availability: >= 3.0 Type: Object Property Description: Sets the
htmlDirection
htmlDirection Availability: >= 3.0 Type: Object Property Description: Sets the
htmlLang
htmlLang Availability: >= 3.0 Type: Object Property Description: Default language
htmlVersion
htmlVersion Availability: >= 3.0 Type: Object Property Description: Sets the
lineReturns
lineReturns Availability: >= 3.0 Type: Object Property Description: Specifies the
loadValueFromFile
loadValueFromFile Availability: >= 3.0 Type: Object Method Description: Loads the
loadValueFromURL
loadValueFromURL Availability: >= 3.0 Type: Object Method Description: Loads the
newCellInners
newCellInners Availability: >= 3.0 Type: Object Property Description: Sets the
name
name Availability: >= 3.0 Type: Object Property Description: Sets the
urlFormat
urlFormat Availability: >= 3.0.1 Type: Object Property Description: Sets the
value
value Availability: >= 3.0 Type: Object Property Description: Sets
jsBookmarkLinks
jsBookmarkLinks Availability: >= 3.1 Type: Object Property Description: If set