-
Notifications
You must be signed in to change notification settings - Fork 2
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
0 parents
commit a2001be
Showing
189 changed files
with
73,737 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"plugins": ["@babel/plugin-proposal-class-properties"] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/vendor | ||
/.idea | ||
/node_modules | ||
/composer.lock | ||
/.phpunit.result.cache |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
## Installation | ||
|
||
Install via composer: | ||
|
||
```bash | ||
composer require leshkens/orchid-tinymce-field | ||
``` | ||
|
||
## Usage | ||
|
||
It easy. Add to you row layout class: | ||
|
||
```php | ||
use Leshkens\OrchidTinyMCEField\TinyMCE; | ||
|
||
TinyMCE::make('tinymce'); | ||
``` | ||
|
||
Avaialble methods: | ||
|
||
```php | ||
TinyMCE::make('tinymce') | ||
->config([ | ||
//TinyMCE config | ||
]) | ||
->uploadEndpoint('') // You image upload custom endpoint | ||
->uploadStorage('') // Upload storage | ||
->uploadGroup('') // Upload group | ||
->uploadMaxFileSize(1000) // in kb | ||
->uploadMaxFileErrorMessage('Слишком большой размер файла'); // Custom error message | ||
``` | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"name": "leshkens/orchid-tinymce-field", | ||
"description": "Orchid TinyMCE field", | ||
"license": "MIT", | ||
"keywords": [ | ||
"orchid", | ||
"tinymce", | ||
"wysiwyg", | ||
"editor", | ||
"field" | ||
], | ||
"type": "library", | ||
"authors": [ | ||
{ | ||
"name": "tabuna", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"name": "Leshkens", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"php": ">=7.3", | ||
"orchid/platform": "^8.0|^9.0" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^9.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Leshkens\\OrchidTinyMCEField\\": "src" | ||
} | ||
}, | ||
"scripts": { | ||
"phpunit": "phpunit" | ||
}, | ||
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"Leshkens\\OrchidTinyMCEField\\Providers\\ServiceProvider" | ||
] | ||
} | ||
}, | ||
"config": { | ||
"preferred-install": "dist", | ||
"sort-packages": true, | ||
"optimize-autoloader": true | ||
} | ||
} |
Oops, something went wrong.