Editor

Editor

Editor - Rich text

Methods

Inherited from Element
Inherited from Input
Inherited from InputAttributesTrait
Inherited from Element
Inherited from BasicAttributesTrait

__construct

Create a tinyMCE rich-text editor input.

Editor::__construct( string $name, string $guid )

setRows

Set the textarea rows attribute to control the height of the editor box.

Editor::setRows( integer $count ): self

Returns Self: This method can be chained.


showMedia

Set whether the media bar for upload and quick inser is available.

Editor::showMedia( boolean $value = true ): self

Returns Self: This method can be chained.


initiallyHidden

Set whether the editor input is initially hidden.

Editor::initiallyHidden( boolean $value = true ): self

Returns Self: This method can be chained.


allowUpload

Allow resources to be uploaded through the editor window.

Editor::allowUpload( boolean $value = true ): self

Returns Self: This method can be chained.


resourceAlphaSort

Sets the sort order for resource upload.

Editor::resourceAlphaSort( boolean $value = true ): self

Returns Self: This method can be chained.


initialFilter

Sets a filter for resource upload.

Editor::initialFilter( string $value = '' ): self

Returns Self: This method can be chained.