Skip to content

Commit 26c21fb

Browse files
committed
Default tinymce updated, toolbar options
1 parent 5691075 commit 26c21fb

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/config.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@
101101
| Default tinymce options for all modules, can be overruled per module
102102
*/
103103
'tinymce_defaults' => [
104-
'version' => '5.4.2',
104+
'version' => '5.10.4',
105105
'theme' => 'silver',
106+
'toolbar_sticky' => 'true',
107+
'toolbar_sticky_offset' => 40,
106108
'formats' => "
107109
{title: 'H2', block: 'h2', classes: 'h2'},
108110
{title: 'H3', block: 'h3', classes: 'h3'},

src/views/model.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@
130130
@endif
131131
browser_spellcheck: true,
132132
convert_urls : false,
133-
toolbar_sticky: true,
133+
toolbar_sticky: {{ config('admin.tinymce_defaults.toolbar_sticky', 'true') }},
134+
toolbar_sticky_offset: {{ config('admin.tinymce_defaults.toolbar_sticky_offset', 40) }},
134135
image_caption: true,
135136
file_browser_callback: function(field_name, url, type, win) {
136137
modelAddMedia(null, {field_name: field_name, win: win, media_url: "{{ rtrim(config('admin.media_url'), '/') }}/"});

0 commit comments

Comments
 (0)