Skip to content

Files

Latest commit

author
Nikolai Nikolajevic
Jun 10, 2021
08a4e40 · Jun 10, 2021

History

History
30 lines (26 loc) · 2.26 KB

wysiwyg.md

File metadata and controls

30 lines (26 loc) · 2.26 KB

WYSIWYG

A What-You-See-Is-What-You-Get editor using tiptap.

$form->wysiwyg('text')
    ->translatable()
    ->colors([
        '#4951f2', '#f67693', '#f6ed76', '#9ff2ae', '#83c2ff'
    ])
    ->title('Description')
    ->hint('What you see is what you get field.');

Methods

Method Description
$field->title() The title description for this field.
$field->hint() A short hint that should describe how to use the field.`
$field->info() Question mark with tooltip. (Can contain longer field descriptions)
$field->width() Width of the field.
$field->translatable() Should the field be translatable? For translatable crud models, the translatable fields are automatically recognized.
$field->max() Max characters.
$field->colors() Array of colors the the text can be painted in.
$field->tableHasHeader() Determines if wysiwyg tables should have an header.
$field->rules() Rules that should be applied when updating and creating.
$field->creationRules() Rules that should be applied when creating.
$field->updateRules() Rules that should be applied when updating.