Skip to content

Commit 00dd79c

Browse files
committed
TinyMCE plugins can now be set in admin config
1 parent 64651cb commit 00dd79c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/views/model.blade.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,12 @@
140140
callback("{{ rtrim(config('admin.media_url'), '/') }}/" + fileUrl);
141141
});
142142
},
143-
plugins: [
144-
// 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
145-
"autoresize autolink link anchor image lists wordcount visualblocks code table paste"
146-
],
143+
@if ($lp->module('tinymce', 'plugins', config('admin.tinymce_defaults')))
144+
plugins: ["{{ $lp->module('tinymce', 'plugins', config('admin.tinymce_defaults')) }}"],
145+
@else
146+
// 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
147+
plugins: ["autoresize autolink link anchor image lists wordcount visualblocks code table paste"],
148+
@endif
147149
@if ($lp->module('tinymce', 'toolbar', config('admin.tinymce_defaults')))
148150
toolbar: "{{ $lp->module('tinymce', 'toolbar', config('admin.tinymce_defaults')) }}",
149151
@else

0 commit comments

Comments
 (0)