-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e748b4f
commit d4f20b3
Showing
22 changed files
with
2,827 additions
and
22,684 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ composer.lock | |
phpunit.xml | ||
.phpunit.result.cache | ||
.DS_Store | ||
.php_cs.cache | ||
Thumbs.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,32 @@ | ||
# Nova Youtube-Field | ||
Simple Laravel Nova Youtube field. Convert attribute value to an embed YouTube-Video | ||
# Nova Froala editor field | ||
Laravel Nova Froala Editor field. | ||
|
||
## Installation | ||
|
||
You can install the package in to a Laravel app that uses Nova via composer: | ||
1. You can install the package in to a Laravel app that uses Nova via composer: | ||
|
||
``` | ||
composer require alfonsobries/nova-froala-editor | ||
``` | ||
|
||
2. The froala editor needs to load the font awesome library, in order to publish the fonts in the public folder you need to run: | ||
|
||
``` | ||
composer require nova-fields/youtube | ||
php artisan vendor:publish --tag=froala-editor-fonts | ||
``` | ||
|
||
## Usage: | ||
|
||
## Simple Usage: | ||
```php | ||
Youtube::make('Field Name') | ||
FroalaEditor::make('Field Name') | ||
``` | ||
|
||
## Advanced Usage: | ||
You can pass any existing Froala option. Consult the [Froala documentation](https://www.froala.com/wysiwyg-editor/docs/options) to view the list of all the available options | ||
```php | ||
NovaFroalaEditor::make('Description') | ||
->options(['toolbarInline' => true]) | ||
``` | ||
|
||
## License | ||
|
||
The MIT License (MIT). Please see [License File](LICENSE.md) for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"keywords": [ | ||
"laravel", | ||
"nova", | ||
"froala", | ||
"froala" | ||
], | ||
"license": "MIT", | ||
"require": { | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.