?
avatar twister65
twister65
1 Sep 2018

Steps to reproduce the issue

  1. Log in as administrator
  2. System -> Global configuration
  3. Change the Default Editor (Code Mirror)
  4. Save & Close
  5. Edit an article

Expected result

The editor has changed. The new one is Code Mirror, for example.

Actual result

The editor has not changed.
You have to select and save twice the editor to be taken into account.

System information (as much as possible)

Database : PostgreSQL v10.4
PHP Version : 7.1.20
Joomla! Version : Joomla! 3.8.12 Stable [ Amani ] 28-August-2018 14:00 GMT
Joomla! Platform Version : Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User agent : Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36

Additional comments

avatar twister65 twister65 - open - 1 Sep 2018
avatar joomla-cms-bot joomla-cms-bot - change - 1 Sep 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 1 Sep 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 1 Sep 2018
Category com_content Plugins
avatar franz-wohlkoenig franz-wohlkoenig - change - 1 Sep 2018
Status New Discussion
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 1 Sep 2018

Can't confirm. Change Default Editor in Global Configuration works as expected.

System information

  • 3.8.12
  • Template: Protostar
  • macOS Sierra, 10.13.6
  • Firefox 61 (64-bit)

CloudAccess.net

  • PHP 7.0.28
  • MySQLi 5.7.18-cll-lve
avatar twister65 twister65 - change - 1 Sep 2018
The description was changed
avatar twister65 twister65 - edited - 1 Sep 2018
avatar twister65
twister65 - comment - 1 Sep 2018

systeminfo-2018-08-31T22_44_28-07_00.txt
I tried with PostgreSQL database.

avatar ggppdk
ggppdk - comment - 1 Sep 2018

Maybe you have configured an editor specifically for this user
can you edit user and check ?

avatar twister65
twister65 - comment - 1 Sep 2018

New installation (no update) with official Joomla_3.8.12-Stable-Full_Package.zip from joomla.org.
Log in as administrator with all the default options.
The problem is still relevant.
Please, see my system configuration :
systeminfo-2018-08-31T22_44_28-07_00.txt
superuser

avatar twister65
twister65 - comment - 1 Sep 2018

The configuration.php file is correctly updated.
class JConfig { public $editor = 'codemirror';
But it is not reloaded when you edit an article.
You must log out and log back in.

avatar alikon
alikon - comment - 1 Sep 2018

cannot replicate on staging with postgresql 9.6.8

avatar twister65
twister65 - comment - 1 Sep 2018

Video screenshot : https://youtu.be/ygyZDMncchI

avatar alikon
alikon - comment - 1 Sep 2018

articles - jstaging - administration

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 1 Sep 2018

@twister65 have you asked at forums?

avatar twister65
twister65 - comment - 1 Sep 2018

No

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 1 Sep 2018

i suggest to do so as there are on one Hand your Experience on the other not confirmings and this repository concerns in first Place Joomla-Core coding. Showing Videos didn't bring it to a Solution i guess.

avatar SharkyKZ
SharkyKZ - comment - 1 Sep 2018

It's caching issue. OPCache in this case. We could invalidate configuration file cache like it's done in update script:

// opcode cache busting before including the filename
if (function_exists('opcache_invalidate'))
{
opcache_invalidate($filename);
}
if (function_exists('apc_compile_file'))
{
apc_compile_file($filename);
}
if (function_exists('wincache_refresh_if_changed'))
{
wincache_refresh_if_changed(array($filename));
}
if (function_exists('xcache_asm'))
{
xcache_asm($filename);
}

avatar twister65
twister65 - comment - 1 Sep 2018

Yes, it was a caching issue. Thank you, SharkyKZ. The editor is effectively changed with this commit :
twister65@8f27678

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 1 Sep 2018

@twister65 can you please close the Issue?

avatar twister65
twister65 - comment - 1 Sep 2018

Do you want a pull request ? Did you approve the changes ?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 1 Sep 2018

Yes, it was a caching issue.

Thats why i asked. If you do a Pull Request i say thank you :-)

avatar twister65
twister65 - comment - 1 Sep 2018

##21949
Some checks were not successful
1 errored, 1 failing, and 2 successful checks

avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Sep 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-09-02 07:40:16
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 2 Sep 2018
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 2 Sep 2018
avatar joomla-cms-bot
joomla-cms-bot - comment - 2 Sep 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 2 Sep 2018

closed as having Pull Request #21949

Add a Comment

Login with GitHub to post a comment