Skip to content

Commit

Permalink
Default tinymce updated, toolbar options
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdekruijk committed May 13, 2022
1 parent 5691075 commit 26c21fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@
| Default tinymce options for all modules, can be overruled per module
*/
'tinymce_defaults' => [
'version' => '5.4.2',
'version' => '5.10.4',
'theme' => 'silver',
'toolbar_sticky' => 'true',
'toolbar_sticky_offset' => 40,
'formats' => "
{title: 'H2', block: 'h2', classes: 'h2'},
{title: 'H3', block: 'h3', classes: 'h3'},
Expand Down
3 changes: 2 additions & 1 deletion src/views/model.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@
@endif
browser_spellcheck: true,
convert_urls : false,
toolbar_sticky: true,
toolbar_sticky: {{ config('admin.tinymce_defaults.toolbar_sticky', 'true') }},
toolbar_sticky_offset: {{ config('admin.tinymce_defaults.toolbar_sticky_offset', 40) }},
image_caption: true,
file_browser_callback: function(field_name, url, type, win) {
modelAddMedia(null, {field_name: field_name, win: win, media_url: "{{ rtrim(config('admin.media_url'), '/') }}/"});
Expand Down

0 comments on commit 26c21fb

Please sign in to comment.