Skip to content

Commit

Permalink
tinymce_config
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdekruijk committed Apr 25, 2023
1 parent 1520f50 commit 287b7fe
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,18 @@
'toolbar' => 'code visualblocks | undo redo | styleselect | bold italic | bullist numlist outdent indent | link | image media table',
],

/*
|--------------------------------------------------------------------------
| tinymce_config
|--------------------------------------------------------------------------
| You can set any tinymce configuration option here.
*/
'tinymce_config' => '
invalid_styles: {
td: "width"
},
',

/*
|--------------------------------------------------------------------------
| modules
Expand Down
1 change: 1 addition & 0 deletions src/views/model.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
@endif
tinymce.init({
selector:'textarea.tinymce',
{!! config('admin.tinymce_config') !!}
theme: '{{ config('admin.tinymce_defaults.theme', 'modern') }}',
menubar: false,
branding: false,
Expand Down

0 comments on commit 287b7fe

Please sign in to comment.