diff --git a/src/config.php b/src/config.php index b4893bf..1349b5d 100644 --- a/src/config.php +++ b/src/config.php @@ -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'}, diff --git a/src/views/model.blade.php b/src/views/model.blade.php index 7965514..8ef33e3 100644 --- a/src/views/model.blade.php +++ b/src/views/model.blade.php @@ -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'), '/') }}/"});