Help us to help you!

Our aim is to offer you the best service possible, to do this we need to know: (1.) Joomla! version (2.) Server type (3.) Editor version (4.) Browsers type & Version and any (5.) Error messages you may have, for help in finding this information please - click here…We would also invite you to read our form rules before posting - read more…

Welcome, Guest
Please Login or Register.    Lost Password?

How to turn off SCAYT function by default?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: How to turn off SCAYT function by default?
#398
How to turn off SCAYT function by default? 1 Year, 7 Months ago Karma: 0
Hi all,

Does anyone happens to know how to turn off the SCAYT function by default? In version 3.3.1, the SCAYT is turned on by default. This is especially troublesome in the case where there are more than one instance of JoomlaCK editor in a single page. The page just won't load properly, with focus keep on switching from one instance to another, and it goes on forever...

Please help, thanks.
bbchopsticks
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/08/07 18:50 By Paul.F.
The topic has been locked.
 
#402
Re:How to turn off SCAYT function by default? 1 Year, 7 Months ago Karma: 0
Anyway, found the problem is not related to SCAYT, but the startupFocus property that is set to true in plugins/editors/jckeditor/includes/ckeditor/htmlwriter/javascript/helper.php

I set it to false in the 2 functions appears in the file, it solved the focus issue...

As to disable the SCAYT from auto loading, I hardcode the "t=s.config.scayt_autostartup..." and "E=s.config.scayt_autostartup..." in ckeditor.js to "t=false;" and "E=false;". The SCAYT is not loaded automatically then...

Hope this information is useful to whom may need to do similar modification.
bbchopsticks
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The topic has been locked.
 
#470
Re:How to turn off SCAYT function by default? 1 Year, 7 Months ago Karma: 0
How did you edit ckeditor.js? It appears as one line of code to me.
Ottmar
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The topic has been locked.
 
#476
Re:How to turn off SCAYT function by default? 1 Year, 7 Months ago Karma: 0
Just a normal text editor will do. I used the find function of the text editor to locate the key word "s.config.scayt_autostartup". You will find the statement instantly.

The js file appear as one line due to the javascript compression, which is meant to reduce the overhead and hence reducing the file size for optimal page loading. If you wanna have a look into the original code, you may consider using the following website...
http://jsbeautifier.org/ though it doesn't return you the original variable name.

Make the following changes...

Remove or comment out...
t=s.config.scayt_autoStartup;t=t==undefined||t; and replace with t=false;

Remove or comment out...
E=s.config.scayt_autoStartup; and replace with E=false;

This will turn off the SCAYT autostart.

There may be easier way to do this, though this is the only way I know...
bbchopsticks
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/07/03 05:13 By bbchopsticks.
The topic has been locked.
 
#477
Re:How to turn off SCAYT function by default? 1 Year, 7 Months ago Karma: 0
That seems to have solved my problem.

Thank you for taking the time to explain in detail what I needed to do.

Regards.
Ottmar
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The topic has been locked.
 
#512
Re:How to turn off SCAYT function by default? 1 Year, 6 Months ago Karma: 0
.
Thanks for this.
I really do not like a third-party website being sent everything I type.


I tried using the config.js file to set this to false:

/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or ckeditor.com/license
*/

CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.scayt_autoStartup = 'false';
};

But that did not work.

So thanks, your method did work.

.
kenmcd
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The topic has been locked.
 
#516
Re:How to turn off SCAYT function by default? 1 Year, 6 Months ago Karma: 20
Hi guys

Thank you for your posts.

If manually hacking the code proves tiresome, then you maybe interested to learn that the new JoomlaCK Manager comes with the option to simply disable the SCAYT function. This option is also upgradable so there is no need to merge your file with each update.

Please see: www.joomlackeditor.com/component/content...r-installation-guide for a simply step by step guide.

Take Care,



Paul
Paul.F
Administrator
Posts: 1045
graph
User Online Now Click here to see the profile of this user
Gender: Male webxsolution.com Location: London Birthday: 12/09
Last Edit: 2010/07/15 13:36 By Paul.F.
If you use JoomlaCK Editor, please post a review at the Joomla! Extensions Directory.
The topic has been locked.
 
Go to topPage: 1
Moderators: Paul.F