Skip to content

Commit 0dff75a

Browse files
committed
TinyMCE update/tweaks
1 parent 893f322 commit 0dff75a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
| Default tinymce options for all modules, can be overruled per module
102102
*/
103103
'tinymce_defaults' => [
104-
'version' => '5.1.2',
104+
'version' => '5.4.2',
105105
'theme' => 'silver',
106106
'formats' => "
107107
{title: 'H2', block: 'h2', classes: 'h2'},

src/css/base.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,8 @@ TABLE.report TR:hover > TD {background-color:#0cb;border-color:#0cb}
297297
.mce-panel {border-radius:3px}
298298
.mce-first {position:-webkit-sticky !important;position:sticky !important;top:-7px}
299299
.mce-tinymce {box-shadow:none !important;box-sizing:border-box !important}
300+
.tox-toolbar-overlord,
301+
.tox-tinymce {border-radius:3px !important;overflow:hidden}
300302

301303
@media (min-width:651px) {
302304
nav.expanded ~ .fullpage {left:270px}

src/views/model.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
@endif
131131
browser_spellcheck: true,
132132
convert_urls : false,
133+
toolbar_sticky: true,
133134
image_caption: true,
134135
file_browser_callback: function(field_name, url, type, win) {
135136
modelAddMedia(null, {field_name: field_name, win: win, media_url: "{{ rtrim(config('admin.media_url'), '/') }}/"});
@@ -141,7 +142,7 @@
141142
},
142143
plugins: [
143144
// autoresize advlist autolink link image lists hr anchor searchreplace wordcount visualblocks code table paste contextmenu save textcolor contextmenu emoticons template directionality print preview pagebreak charmap media visualchars fullscreen fullpage visualchars insertdatetime nonbreaking
144-
"autoresize autolink link anchor image lists wordcount visualblocks code table paste contextmenu"
145+
"autoresize autolink link anchor image lists wordcount visualblocks code table paste"
145146
],
146147
@if ($lp->module('tinymce', 'toolbar', config('admin.tinymce_defaults')))
147148
toolbar: "{{ $lp->module('tinymce', 'toolbar', config('admin.tinymce_defaults')) }}",

0 commit comments

Comments
 (0)