J3 Issue ?
Referenced as Duplicate of: # 16600
avatar makermann
makermann
6 Jun 2017

Steps to reproduce the issue

Create a new article or open an existing article.
Edit the article text. Or change an image etc.
Press the keys Ctrl and S (Ctrl+s).

Expected result

The edited version of the article is saved. Or no action, so the changed text ist still available.

Actual result

The page is reloaded. The user is directed to the article list page (com_content, view=articles). The article is checked out. All changes are lost.

System information (as much as possible)

Server: Joomla 3.7.2., php 7, Using default tinymce as the editor plugin, standard out of the box Joomla, no plugins for article editing, no K2.

Desktop: Suse Linux, Browser: Firefox.

Additional comments

I have lost multiple edits due to the engrained automatic pressing of Ctrl+s.
Hence the behavior of the Joomla article editor-view has led me to lose hours of my valuable time. So right now the only solution is, not to use the article editor for writing articles (only for entry). Which is the purpose of the editor in the first place.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar makermann makermann - open - 6 Jun 2017
avatar joomla-cms-bot joomla-cms-bot - labeled - 6 Jun 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 6 Jun 2017

Using cmd+s, alt+s or ctrl+s doesn't reload Page. cmd+s open the Dialog to save as html-Site.
Please see Comment.

System information

3.7.3-dev (latest nightly build)
Multilanguage Site
macOS Sierra, 10.12.5
Firefox 53 (64-bit)

MAMP 4.1.1

  • PHP 7.0.15
  • MySQLi 5.6.35
avatar franz-wohlkoenig franz-wohlkoenig - change - 6 Jun 2017
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 6 Jun 2017
Category UI/UX
avatar AlexRed
AlexRed - comment - 7 Jun 2017

I can confirm:
Edit the article text.
Press the keys Ctrl and S (Ctrl+s).
The page is reloaded. The user is directed to the article list page (com_content, view=articles). The article is checked out. All changes are lost.

Test in Joomla 3.7.3Dev from Firefox on Linux Ubuntu


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16550.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 7 Jun 2017

3x Firefox, but Issue only on Linux. Can someone test on Windows?

avatar brianteeman
brianteeman - comment - 7 Jun 2017

tested chrome on windows
Ctrl-s will close the editor and return to the list view without saving
tested edge on windows
Ctrl-s will close the editor and return to the list view without saving
tested ie11 on windows
Ctrl-s will close the editor and return to the list view without saving
tested firefox on windows
Ctrl-s will close the editor and return to the list view without saving

NOTE to testers

This only happens when the cursor is in the tinymce editor - if it is anywhere else on the page then cyrl-s will open a browser dialogue to try and save the page locally

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 7 Jun 2017

@brianteeman you're right: also on Mac using cmd+s and Curser is in TinyMCE-Editor the Page gets reloaded and Article checked-out in List-View without saving Changes.

avatar brianteeman
brianteeman - comment - 7 Jun 2017
avatar dgt41
dgt41 - comment - 9 Jun 2017

Few months ago we had that code in J4. now that code is not there anymore... 😞
screen shot 2017-06-09 at 20 48 50

avatar brianteeman
brianteeman - comment - 9 Jun 2017

It's not related to that. I gave the tinymce link that is the cause earlier

avatar dgt41
dgt41 - comment - 10 Jun 2017

@brianteeman following the instructions of the link you pasted above, this can be fixed by adding this:

		if (tinyMCE && typeof tinyMCE === 'function') {
			button.type = 'submitbtn';
		}

here: https://github.com/joomla/joomla-cms/blob/staging/media/system/js/core-uncompressed.js#L70

avatar ghazal
ghazal - comment - 12 Jun 2017

@dgt41 I tried your solution. It doesn't work (mac here). Result is the same as described above.

avatar wojsmol
wojsmol - comment - 12 Jun 2017

@ghazal Have you also made changes to https://github.com/joomla/joomla-cms/blob/staging/media/system/js/core.js. If not, the changes will be visible only when system debug mode is enabled

avatar ghazal
ghazal - comment - 12 Jun 2017

Yes, of course ...

avatar makermann
makermann - comment - 5 Jul 2017

Hi, thanks for taking the time to investigate the problem. Has there been any progress to the issue?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 5 Jul 2017

@makermann there is no PR solving this Issue. I understand @brianteeman 's comment as its an Issue at TinyMCE – correct, brian?

avatar brianteeman brianteeman - change - 25 Mar 2018
Labels Added: J3 Issue
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar brianteeman
brianteeman - comment - 29 May 2018

I have worked out how to prevent ctrl-s from closing the window and only offering a browser dialog to save. This is by disabling the save plugin in tinymce.php

That will prevent the original report of losing an article but it doesnt make ctrl-s save the article.

avatar brianteeman brianteeman - change - 18 Aug 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-08-18 18:03:14
Closed_By brianteeman
avatar brianteeman
brianteeman - comment - 18 Aug 2018

I can no longer replicate the issue. I am going to assume it has been resolved elsewhere but if not and someone can replicate it then it can always be reopened

avatar brianteeman brianteeman - close - 18 Aug 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Sep 2019
Status Closed New
Closed_Date 2018-08-18 18:03:14
Closed_By brianteeman
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 7 Sep 2019

Reopened as requested in #26197 (comment)

avatar franz-wohlkoenig franz-wohlkoenig - reopen - 7 Sep 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 8 Sep 2019
Status New Discussion
avatar Quy
Quy - comment - 14 Jan 2020

Please test PR #27519

avatar Quy Quy - close - 14 Jan 2020
avatar Quy Quy - change - 14 Jan 2020
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2020-01-14 14:56:42
Closed_By Quy

Add a Comment

Login with GitHub to post a comment