Skip to content

Commit

Permalink
v0.3.1 - remove "Save" plugin and esc, ctrl+s shortcuts so that they …
Browse files Browse the repository at this point in the history
…cannot interfere with joomla admin form shortcuts / Joomla Shortcuts JX
  • Loading branch information
jbjhjm committed May 24, 2017
1 parent bd3a0c2 commit d89ece1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion development/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.3.0",
"version": "0.3.1",
"copyright": "Jannik Mewes / YOOlabs GmbH",

"author": "Jannik Mewes",
Expand Down
9 changes: 8 additions & 1 deletion development/plg_yoo_tinymce_config/yoo_tinymce_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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});
}
";
Expand Down

0 comments on commit d89ece1

Please sign in to comment.