Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Leshkens committed Nov 12, 2020
0 parents commit a2001be
Show file tree
Hide file tree
Showing 189 changed files with 73,737 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"plugins": ["@babel/plugin-proposal-class-properties"]
}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/vendor
/.idea
/node_modules
/composer.lock
/.phpunit.result.cache
33 changes: 33 additions & 0 deletions README.md
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
```


50 changes: 50 additions & 0 deletions composer.json
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
}
}
Loading

0 comments on commit a2001be

Please sign in to comment.