Quickly developed. Short tutorial.
With this Nova field you have the Textarea or Text with BBCodes.
(Tested with Nova 4)
composer require norman-huth/nova-bbcode-textarea
use NormanHuth\BBCode\BBCode;
BBCode::make(__('Name'), 'name')->codes([
'{author}' => __('This code insert the author'),
'{date}' => __('This code insert the date'),
]),
Or Text Field:
use NormanHuth\BBCode\BB;
BB::make(__('Name'), 'name')->codes([
'{author}' => __('This code insert the author'),
'{date}' => __('This code insert the date'),
]),
BBCode::make(__('Name'), 'name')->codes([
'{author}' => __('This code insert the author'),
'{date}' => __('This code insert the date'),
])->alwaysShow(false),
BBCode::make(__('Name'), 'name')->codes([
'{author}' => __('This code insert the author'),
'{date}' => __('This code insert the date'),
])->btnClass('px-2 bg-white-200 text-dark-800'),
BBCode::make(__('Name'), 'name')->codes([
'{author}' => __('This code insert the author'),
'{date}' => __('This code insert the date'),
])->btnStyle('margin-bottom: 1rem'),