Skip to content

Commit

Permalink
Laravel nova froala editor
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsobries committed Aug 25, 2018
1 parent e748b4f commit d4f20b3
Show file tree
Hide file tree
Showing 22 changed files with 2,827 additions and 22,684 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ composer.lock
phpunit.xml
.phpunit.result.cache
.DS_Store
.php_cs.cache
Thumbs.db
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 alfonsobries
Copyright (c) 2018 Alfonso Bribiesca

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
27 changes: 20 additions & 7 deletions README.md
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.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"keywords": [
"laravel",
"nova",
"froala",
"froala"
],
"license": "MIT",
"require": {
Expand Down
4 changes: 4 additions & 0 deletions dist/css/field.css

Large diffs are not rendered by default.

Binary file added dist/fonts/font-awesome/FontAwesome.otf
Binary file not shown.
Binary file added dist/fonts/font-awesome/fontawesome-webfont.eot
Binary file not shown.
2,671 changes: 2,671 additions & 0 deletions dist/fonts/font-awesome/fontawesome-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/fonts/font-awesome/fontawesome-webfont.ttf
Binary file not shown.
Binary file added dist/fonts/font-awesome/fontawesome-webfont.woff
Binary file not shown.
Binary file added dist/fonts/font-awesome/fontawesome-webfont.woff2
Binary file not shown.
Loading

0 comments on commit d4f20b3

Please sign in to comment.