Skip to content

Commit

Permalink
TinyMCE update/tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdekruijk committed Sep 25, 2020
1 parent 893f322 commit 0dff75a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
| Default tinymce options for all modules, can be overruled per module
*/
'tinymce_defaults' => [
'version' => '5.1.2',
'version' => '5.4.2',
'theme' => 'silver',
'formats' => "
{title: 'H2', block: 'h2', classes: 'h2'},
Expand Down
2 changes: 2 additions & 0 deletions src/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ TABLE.report TR:hover > TD {background-color:#0cb;border-color:#0cb}
.mce-panel {border-radius:3px}
.mce-first {position:-webkit-sticky !important;position:sticky !important;top:-7px}
.mce-tinymce {box-shadow:none !important;box-sizing:border-box !important}
.tox-toolbar-overlord,
.tox-tinymce {border-radius:3px !important;overflow:hidden}

@media (min-width:651px) {
nav.expanded ~ .fullpage {left:270px}
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,6 +130,7 @@
@endif
browser_spellcheck: true,
convert_urls : false,
toolbar_sticky: true,
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 All @@ -141,7 +142,7 @@
},
plugins: [
// 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
"autoresize autolink link anchor image lists wordcount visualblocks code table paste contextmenu"
"autoresize autolink link anchor image lists wordcount visualblocks code table paste"
],
@if ($lp->module('tinymce', 'toolbar', config('admin.tinymce_defaults')))
toolbar: "{{ $lp->module('tinymce', 'toolbar', config('admin.tinymce_defaults')) }}",
Expand Down

0 comments on commit 0dff75a

Please sign in to comment.