norman-huth / nova-bbcode-textarea
Laravel Nova Textarea and Text field with BBCodes
Package info
github.com/Muetze42/nova-bbcode-textarea
Language:JavaScript
pkg:composer/norman-huth/nova-bbcode-textarea
Fund package maintenance!
Requires
- php: ^8.0
- laravel/nova: ^4.0.0
This package is auto-updated.
Last update: 2026-05-30 12:13:24 UTC
README
This repository is archived and no longer maintained.
If you offer, maintain, or know of an actively maintained alternative to this project, please contact me at maintainers@huth.it.
If the alternative references this repository as its source, inspiration, predecessor, or migration path, I may list it here so existing users can find a maintained replacement.
Nova Textarea- & Text field with BBCodes
Quickly developed. Short tutorial.
With this Nova field you have the Textarea or Text with BBCodes.
(Tested with Nova 4)
Install
composer require norman-huth/nova-bbcode-textarea
Usage
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'), ]),
Don't always show the content of textarea fields inside Nova
BBCode::make(__('Name'), 'name')->codes([ '{author}' => __('This code insert the author'), '{date}' => __('This code insert the date'), ])->alwaysShow(false),
Change button class
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'),
Add inline style to the button
BBCode::make(__('Name'), 'name')->codes([ '{author}' => __('This code insert the author'), '{date}' => __('This code insert the date'), ])->btnStyle('margin-bottom: 1rem'),