2022-06-17 17:51:59 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
return [
|
2022-08-31 15:02:43 +02:00
|
|
|
'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;
|
2025-04-21 18:57:21 +02:00
|
|
|
},
|
|
|
|
/**
|
|
|
|
* Sets the allowed nodes. Available nodes: `bulletList`, `orderedList`
|
|
|
|
*/
|
|
|
|
'nodes' => function ($nodes = null) {
|
|
|
|
return $nodes;
|
2022-08-31 15:02:43 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
'computed' => [
|
|
|
|
'value' => function () {
|
|
|
|
return trim($this->value ?? '');
|
|
|
|
}
|
|
|
|
]
|
2022-06-17 17:51:59 +02:00
|
|
|
];
|