name

Availability: >= 3.0

Type: Object Property

Description: Sets the name of an editor.

Syntax:

$editor->name string $name;

This property sets the name of the editor. By default the name is 'htmlCode'. Essentially the name property is equivalent to the name attribute on a regular textarea or form input element.

When the form containing the editor is submitted the name is the key in PHP's $_POST or $_GET array that can be used to retrieve the HTML code.

The name is also used with the JavaScript API to interact with an editor through JavaScript.

If you are displaying several editors on the same page then each editor MUST be given a different name.