Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 647 Bytes

Wysihtml5.md

File metadata and controls

24 lines (19 loc) · 647 Bytes

Wysihtml5 Editor

A simple HTML5 WYSIWYG editor.

Using on an active form:

use webtoolsnz\widgets\Wysihtml5;

// Basic usage
$form->field($model, 'detail')->widget(Wysihtml5::className());

// With customised toolbar and size
$form->field($model, 'detail')->widget(Wysihtml5::className(), [
	'options' => ['rows' => 10, 'cols' => 20],
	'clientOptions' => [
		'font-styles'=> false,
    	'emphasis' => false,
    	'link' => false,
        'color' => true,
	]
]);

You can pass any options available into the clientOptions property, See the documentation for more details.