Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Way to disable WYSIWYG editor
#1
Hello all!

Would anybody please advise me if there is any simple (or soficticated) way to disable WYSIWYG editor mode in admin at all. Or at least make HTML-mode primary by default. I never use visual editors and it's quite annoying to switch every time when one saves changes in page content.

Thanks a lot in advance
Anna
Reply
#2
Go to "Settings" in administration and remove check from "Enable the HTML editor" option.
Reply
#3
Thanks a lot for your so quick reply.

I've already done it of course. Unfortunately, this enable HTML editor but not disable WYSIWYG editor. The last is still active and when you save page it automatically switches into WYSIWYG mode even if you previously edited it in HTML mode.
What I'd like to achive is to avoid this behaviour and make HTML mode my only (or at least my default) mode.
Reply
#4
I do not understand your problem completely.

There is only one RichText-Editor in GetSimple.
It is CKEDITOR
in the user-profile this editor is named "HTML-Editor"
when you uncheck this option, you will only get a blank textarea to edit the content and you can enter every HTML-code

Now the CKEDITOR:
This editor has 2 modi: WYSIWYG and HTML
do you want CKEDITOR to only offer HTML-Mode?
I do not know if there are options for this.
This would be a question for the Forum at ckeditor.net
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#5
I found a solution for you:

add

Code:
startupMode:'source'

to the editor-options in gsconfig.php

for example, my definition is like this:

Code:
define('GSEDITOROPTIONS', "startupMode:'source',entities : false,forceSimpleAmpersand:true,skin: 'v2'
");

by this, Source-Mode is default and it won't switch back to WYSIWYG-mode after saving
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#6
to Connie

Oh! Thanks a lot for pointing me to that, that's exactly I'm looking for...
Thank you again for the advice
Reply
#7
(2011-09-05, 18:28:38)Connie Wrote: I found a solution for you:

add

Code:
startupMode:'source'

to the editor-options in gsconfig.php

for example, my definition is like this:

Code:
define('GSEDITOROPTIONS', "startupMode:'source',entities : false,forceSimpleAmpersand:true,skin: 'v2'
");

by this, Source-Mode is default and it won't switch back to WYSIWYG-mode after saving

Hello,
Every time when I switch to code and after this save the page then the editor switch to default.
Can I set the WYSIWYG editor in 'code'-editor by default? See attachment what I mean.
I try the above solution but don't work in GS 3.3
Can you help me solve this problem?

Christophe


Attached Files Thumbnail(s)
   
Reply
#8
(2014-12-03, 07:24:14)tuxy Wrote: I try the above solution but don't work in GS 3.3

It works for me:
Code:
## gsconfig.php

# WYSIWYG Editor Options
define('GSEDITOROPTIONS', "startupMode:'source'");

(Did you remove the # from the beginning of the define line ?)
--
Nick.
Reply
#9
(2014-12-03, 17:55:14)hameau Wrote:
(2014-12-03, 07:24:14)tuxy Wrote: I try the above solution but don't work in GS 3.3

It works for me:
Code:
## gsconfig.php

# WYSIWYG Editor Options
define('GSEDITOROPTIONS', "startupMode:'source'");

(Did you remove the # from the beginning of the define line ?)

Hi,
Thank you!

It works now Smile

Grtz,
Christophe
Reply




Users browsing this thread: 1 Guest(s)