Skip to content
Permalink
Browse files

remove support for the serverside spell checker since most modern bro…

…wsers do this natively
  • Loading branch information...
perlDreamer committed Jan 6, 2012
1 parent 2bd090c commit 300cd51143667d5634c3c6d1882961e6e8d1c22d
@@ -36,6 +36,8 @@ save you many hours of grief.

* WebGUI 8 does not support HTTP Basic Authentication any longer.

* Support for server-side spell checking in the Rich Editor TinyMCE has been removed.

7.10.23
--------------------------------------------------------------------
* The default_search2 template had a bad template attachment pointing to
@@ -966,23 +966,6 @@
"WebGUI::Image::Graph::XYGraph::Line"
],

# Here you can define the dictionaries that are available through the tinyMCE spellchecker. You should set
# id to the name the dictionary is known by ASpell (eg. en or en_US or nl), use the name parameter to set
# the name the dictionary is displayed with in tinyMCE. To set the default dictionary please set the 'default'
# parameter.

#"availableDictionaries" : [
# {
# "id" : "en_US",
# "name" : "English",
# "default" : "1"
# },
# {
# "id" : "nl",
# "name" : "Dutch"
# }
#],

# Optional script to run upon successful login. The script can contain macros
# ex: /data/WebGUI/sbin/doLogin.pl --configFile=dev.localhost.localdomain.conf --loginPage=^PageUrl();

@@ -259,7 +259,6 @@ override getEditForm => sub {
'save' => $i18n->get('save'),
'preview' => $i18n->get('preview'),
'print' => $i18n->get('print'),
'spellchecker' => $i18n->get('Server Side Spell Checker'),
'code' => $i18n->get('code'),
'fullscreen' => $i18n->get('fullscreen'),
'help' => $i18n->get('help'),
@@ -308,9 +307,6 @@ override getEditForm => sub {
name=>"toolbarRow3",
checked=>$checked3
}).'</td><td>';
if ($key eq 'spellchecker' && !($self->session->config->get('availableDictionaries'))) {
$buttonGrid .= $i18n->get('no dictionaries');
}
$buttonGrid .= '</td>
</tr>
';
@@ -377,13 +373,6 @@ sub getConfig {
wg_userIsVisitor => $self->session->user->isVisitor ? JSON::true() : JSON::false(),
);
foreach my $button (@toolbarButtons) {
if ( $button eq "spellchecker" && $self->session->config->get('availableDictionaries') ) {
push( @plugins, "-wgspellchecker" );
$config{spellchecker_rpc_url} = $self->session->url->gateway( '', "op=spellCheck" );
$config{spellchecker_languages} = join( ',',
map { ( $_->{default} ? '+' : '' ) . $_->{name} . '=' . $_->{id} }
@{ $self->session->config->get('availableDictionaries') } );
}
push( @plugins, "table" ) if ( $button eq "tablecontrols" );
push( @plugins, "save" ) if ( $button eq "save" );
push( @plugins, "advhr" ) if ( $button eq "advhr" );
@@ -475,9 +464,6 @@ sub getLoadPlugins {
my ( $self ) = @_;
my %loadPlugins;
for my $button ( $self->getAllButtons ) {
if ( $button eq 'spellchecker' ) {
$loadPlugins{wgspellchecker} = $self->session->url->extras("tinymce-webgui/plugins/wgspellchecker/editor_plugin.js");
}
if ( $button eq 'wginsertimage' ) {
$loadPlugins{wginsertimage} = $self->session->url->extras("tinymce-webgui/plugins/wginsertimage/editor_plugin.js");
}
@@ -256,10 +256,6 @@ sub getOperations {
'moveColorDown' => 'Graphics',
'moveColorUp' => 'Graphics',
'removeColorFromPalette' => 'Graphics',

'spellCheck' => 'SpellCheck',
'suggestWords' => 'SpellCheck',
'addWordToDictionary' => 'SpellCheck',
};
}

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 300cd51

Please sign in to comment.
You can’t perform that action at this time.