Skip to content

jeffersonsimaogoncalves/nova-bbcode-textarea

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stand With Ukraine

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)

form

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

More Laravel Nova Packages

About

With this Nova field you have the Textarea or Text with BBCodes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 52.9%
  • Vue 36.6%
  • JavaScript 10.5%