From eb3decb4da3dffe6d62789e5e1b6698477496016 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Mon, 8 May 2023 21:25:06 -0400 Subject: [PATCH] Enabled TinyMCE for mobile users as well --- js/app.js | 7 ++++++- portal/portal_footer.php | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index 198407f0..3607c680 100644 --- a/js/app.js +++ b/js/app.js @@ -30,8 +30,13 @@ tinymce.init({ { name: 'alignment', items: [ 'alignleft', 'aligncenter', 'alignright', 'alignjustify' ] }, { name: 'indentation', items: [ 'outdent', 'indent' ] }, { name: 'table', items: [ 'table' ] }, - { name: 'extra', items: [ 'print', 'code', 'fullscreen' ] } + { name: 'extra', items: [ 'code', 'fullscreen' ] } ], + mobile: { + menubar: false, + plugins: 'autosave lists autolink', + toolbar: 'bold italic styles' + }, plugins: 'link image lists table code codesample fullscreen autoresize', }); diff --git a/portal/portal_footer.php b/portal/portal_footer.php index b0e5269f..9da1099d 100644 --- a/portal/portal_footer.php +++ b/portal/portal_footer.php @@ -41,8 +41,13 @@ { name: 'alignment', items: [ 'alignleft', 'aligncenter', 'alignright', 'alignjustify' ] }, { name: 'indentation', items: [ 'outdent', 'indent' ] }, { name: 'table', items: [ 'table' ] }, - { name: 'extra', items: [ 'print', 'code', 'fullscreen' ] } + { name: 'extra', items: [ 'fullscreen' ] } ], + mobile: { + menubar: false, + plugins: 'autosave lists autolink', + toolbar: 'undo bold italic styles' + }, plugins: 'link image lists table code codesample fullscreen autoresize', });