Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages
N

Textarea with BBCodes

Readme

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'),

Stand With Ukraine Woman. Life. Freedom.

Back to Top
Added 3 years ago
Last updated 3 Years Ago
Version 0.0.3
Nova Version ^4.0.0
Composer
norman-huth/nova-bbcode-textarea
GitHub stars 0
Packagist downloads 7,501

Favorites

0 users favorited

Rating

N/A
(out of 5)
★★★★★
★★★★
★★★
★★
0 ratings

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas