Skip to content

Deprecated since 7.2

This page documents the classic module layer (CBController and cbInit()). It still works in every 7.x release, but new code should use resources and pages.

Use instead: A ViewField with your editor, or your own field type.

WYSIWYG Form Input Type ​

Showing a wysiwyg textarea input type

A WYSIWYG (pronounced "wiz-ee-wig") editor or program is one that allows a developer to see what the end result will look like while the interface or document is being created. WYSIWYG is an acronym for "what you see is what you get". ( whatis.techtarget.com )

Code Sample ​

php
$this->form[] = ['label'=>'Content','name'=>'content','type'=>'wysiwyg'];

image

What's Next ​

Table Of Contents ​

Released under the MIT License.