You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
535 B
23 lines
535 B
<?php
|
|
|
|
return [
|
|
'props' => [
|
|
/**
|
|
* Sets the allowed HTML formats. Available formats: `bold`, `italic`, `underline`, `strike`, `code`, `link`. Activate them all by passing `true`. Deactivate them all by passing `false`
|
|
*/
|
|
'marks' => function ($marks = true) {
|
|
return $marks;
|
|
},
|
|
/**
|
|
* Sets the allowed nodes. Available nodes: `bulletList`, `orderedList`
|
|
*/
|
|
'nodes' => function ($nodes = null) {
|
|
return $nodes;
|
|
}
|
|
],
|
|
'computed' => [
|
|
'value' => function () {
|
|
return trim($this->value ?? '');
|
|
}
|
|
]
|
|
];
|
|
|