Skip to content

Commit

Permalink
remove tinymce from docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pxpm committed Oct 18, 2024
1 parent 5c02140 commit 3f34d49
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions 7.x-dev/crud-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -2579,35 +2579,9 @@ Input preview:
<hr>

<a name="tinymce"></a>
### tinymce <span class="badge badge-pill badge-info">PRO</span>
### tinymce

Show a wysiwyg (TinyMCE) to the user.

```php
CRUD::field([ // TinyMCE
'name' => 'description',
'label' => 'Description',
'type' => 'tinymce',
// optional overwrite of the configuration array
// 'options' => [
//'selector' => 'textarea.tinymce',
//'skin' => 'dick-light',
//'plugins' => 'image link media anchor'
// ],
]);
```

Input preview:

![CRUD Field - tinymce](https://backpackforlaravel.com/uploads/docs-4-2/fields/tinymce.png)

**NOTE**: if you want to modify the toolbar buttons (add or remove), here is the default configured toolbar so you can modify it:

```php
'options' => ['toolbar' => 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | outdent indent'],
```

Some buttons are related to specific plugins and need them to work, please read more about it here: [tiny mce available toolbar buttons](https://www.tiny.cloud/docs/advanced/available-toolbar-buttons/)
TinyMCE is now provided by a third-party package, you can find instructions on how to use and configure it [here](https://github.com/Laravel-Backpack/tinymce-field).

<hr>

Expand Down

0 comments on commit 3f34d49

Please sign in to comment.