User tests: Successful: Unsuccessful:
PR for #16550
The tinymce save plugin doesnt work in joomla and instead of just doing nothing it discards edited article instead of saving it
This PR stops loading the save plugin so now if you press ctr-s you will just get any dialog your browser has set. Most importantly it does not result in you losing work
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Plugins |
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
@brianteeman at one point in the very first version of atum @dgrammatiko had the control + s actually saving the article. I'd rather get that functionality restored again than doing a direct port of removing the save plugin for j4 (obviously this is fine for j3)
even that pr requires this patch to work
I wanted to update that PR to use https://github.com/github/hotkey which is much more powerful but struggled with the "import"
I was reluctant on the es6 approach back in the days because what we have is a bastard between modern and legacy js. That project (the es6 transition) was never actually completed. In sort you cannot use import without a bundled like Webpack or rollup...
@brianteeman nope, that's fixable, eg:
if (e.altKey && e.which == 83) {
e.preventDefault();
var toolbar = document.getElementById("toolbar-apply");
toolbar.getElementsByClassName("button-apply")[0].click();
};
and change the event to fire onkeydown
not onkeyup
PS. FWIW that code should be part of the toolbar CE js not another random js file
I dont want to do e.preventDefault(); as I consider it a bad idea to replace existing hotkeys - they might not be coming just from the browser (hint screenreaders) and thats why github, gmail etc all use a different modifier. (I can do it easily with mousetrap but you wouldnt let me)
and no it should not be part of the toolbar - the toolbar buttons are only a subset of where it could be used and we shouldnt limit ourselves
the toolbar buttons are only a subset of where it could be used and we shouldnt limit ourselves
Let me disagree here. You try to cover cases that nobody actually asked for and probably will be used by a minority of the users. You are making this thing one more plugin. Did anyone counted how many plugins J4 is introducing?
Just add the basic shortcuts that people expect to work there (ctr+S was the obvious one all the others are debatable).
Again adding features just to end up saying "hey Joomla provides also that" although it would be extremely hard to manage it and not to mention the customisation part. Why? Just why?
Simplicity is the ultimate design...
rofl says the man who introduced hundreds of javascript files
rofl says the man who introduced hundreds of javascript files
You do understand that you comment is irrelevant. Did I actually brought to the project a deprecated/outdated script like the one from eBay or the mousetrap that you mentioned above? No. So please...
Is it just me or does this feature keep getting broken in J4?
It only got broken once. and then never fixed. so not keep getting broken no :P
It never worked in joomla 3
The original report was in June 2017
That plugin rightfully needs to be removed:
This PR has nothing to do with the ctrl+S
combo @wilsonge and @C-Lodder talking about. That is another conversation, what the project should offer by default and why. Also the implementation needs to be tightly connected to the toolbar as the events actually trigger those buttons...
My 2c
Just merge this and get on with it
Labels |
Added:
?
?
|
Having discussed the use of custom keys and/or modifying keys used by the browser with Bruce regarding accessibility it was deemed to be a bad idea to change the expected behaviour of a browser
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-01-21 12:13:31 |
Closed_By | ⇒ | wilsonge |
Thanks!
@wilsonge I can port this super simple change to j4 if you dont want to have to deal with a merge