From d89ece10047af6f52ea13aa593a95cc1be55fef2 Mon Sep 17 00:00:00 2001 From: jbjhjm Date: Wed, 24 May 2017 15:56:14 +0200 Subject: [PATCH] v0.3.1 - remove "Save" plugin and esc, ctrl+s shortcuts so that they cannot interfere with joomla admin form shortcuts / Joomla Shortcuts JX --- development/package.json | 2 +- .../plg_yoo_tinymce_config/yoo_tinymce_config.php | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/development/package.json b/development/package.json index 9614e6d..5e85027 100644 --- a/development/package.json +++ b/development/package.json @@ -1,5 +1,5 @@ { - "version": "0.3.0", + "version": "0.3.1", "copyright": "Jannik Mewes / YOOlabs GmbH", "author": "Jannik Mewes", diff --git a/development/plg_yoo_tinymce_config/yoo_tinymce_config.php b/development/plg_yoo_tinymce_config/yoo_tinymce_config.php index cb603f8..e70e1c1 100644 --- a/development/plg_yoo_tinymce_config/yoo_tinymce_config.php +++ b/development/plg_yoo_tinymce_config/yoo_tinymce_config.php @@ -50,9 +50,16 @@ function onAfterDispatch() if(tinyMCEoptions) { tinyMCEoptions.tinyMCE.default = jQuery.extend(tinyMCEoptions.tinyMCE.default,{ {$cssFile} - plugins : 'autolink,lists,save,colorpicker,paste,link,code,image,wordcount,autosave,contextmenu', + plugins : 'autolink,lists,colorpicker,paste,link,code,image,wordcount,autosave,contextmenu', preview_styles : 'font-family font-size font-weight font-style text-decoration text-transform color', forced_root_block : false, + setup : function(editor) { + editor.on('init', function () { + // this.addShortcut('alt+shift+m', '', function () {}); + this.shortcuts.remove('ctrl+s'); + this.shortcuts.remove('esc'); + }); + } },{$customSetup}); } ";