How to toggle content editor off by default? Topic is solved

For Joomla! 3.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, General Support Moderators

Forum rules
Post Reply
gba
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 117
Joined: Tue Jun 03, 2014 3:37 pm

How to toggle content editor off by default?

Post by gba » Wed Dec 20, 2023 4:20 pm

Hello!

Wordpress remembers, if the content editor was toggled on or off during last edit and restores that on next edit.
In Joomla I need to manually toggle off the content editor each time I open i. e. an article for editing.

How can I make Joomla remember the last toggle state of the content editor, or at least have the content editor toggled off by default?

Kind regards,
Gerald

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9747
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: How to toggle content editor off by default?

Post by AMurray » Wed Dec 20, 2023 9:59 pm

what exactly do you mean toggle the content editor on or off? Do you mean GUI editor mode vs code view mode?

You're asking this question in J3 > Coding forum. J3 is now an obsolete CMS.

Joomla 4 and Joomla 5 use updated versions of TinyMCE as the default editor maybe that will solve the issue?
Regards - A Murray
General Support Moderator

gba
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 117
Joined: Tue Jun 03, 2014 3:37 pm

Re: How to toggle content editor off by default?

Post by gba » Wed Dec 20, 2023 10:18 pm

Thank you for replying.
Yes, I mean GUI editor mode vs code view mode.
At least in Joomla 4 there is the same issue.

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12787
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: How to toggle content editor off by default?

Post by brian » Thu Dec 21, 2023 8:27 am

Why would you want to do that. There really should never be a need to even toggle the editor once
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

gba
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 117
Joined: Tue Jun 03, 2014 3:37 pm

Re: How to toggle content editor off by default?

Post by gba » Thu Dec 21, 2023 8:45 am

Hi!
This is easy to answer:
Some articles or modules need to be edited in code view, for some others the editor GUI is enough.
So, sometimes I edit the articles/modules in code view, sometimes not.
And it is effortful to always change the editor setting in the user profile to achieve the desired view.
Therefore Joomla (or the editor) should remember the last view state (GUI or code view).
How can I configure that?

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12787
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: How to toggle content editor off by default?

Post by brian » Thu Dec 21, 2023 8:50 am

> Some articles or modules need to be edited in code view, for some others the editor GUI is enough.

If they do then typically you are using it wrong

> How can I configure that?

You can't
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30945
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: How to toggle content editor off by default?

Post by Per Yngve Berg » Thu Dec 21, 2023 9:23 am

Have you tried the JCE Editor?

One Click to change the mode.
There is also a pop-up to enter code in.

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12787
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: How to toggle content editor off by default?

Post by brian » Thu Dec 21, 2023 11:04 am

@per exactly the same as in tinymce
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

gba
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 117
Joined: Tue Jun 03, 2014 3:37 pm

Re: How to toggle content editor off by default?

Post by gba » Mon Jan 15, 2024 5:59 pm

Hello!
Thank you for taking time.
I now solved the real problem (editor removing source code) in another way:
When I choose no text filter in the configuration, the editor does not remove code written manually.
Kind regards,
Gerald


Post Reply

Return to “Joomla! 3.x Coding”