Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 300cd51
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 437 deletions.
2 changes: 2 additions & 0 deletions docs/gotcha.txt
Expand Up @@ -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
Expand Down
17 changes: 0 additions & 17 deletions etc/WebGUI.conf.original
Expand Up @@ -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();

Expand Down
14 changes: 0 additions & 14 deletions lib/WebGUI/Asset/RichEdit.pm
Expand Up @@ -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'),
Expand Down Expand Up @@ -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>
';
Expand Down Expand Up @@ -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" );
Expand Down Expand Up @@ -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");
}
Expand Down
4 changes: 0 additions & 4 deletions lib/WebGUI/Operation.pm
Expand Up @@ -256,10 +256,6 @@ sub getOperations {
'moveColorDown' => 'Graphics',
'moveColorUp' => 'Graphics',
'removeColorFromPalette' => 'Graphics',

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

Expand Down
48 changes: 0 additions & 48 deletions www/extras/tinymce-webgui/plugins/wgspellchecker/add-word.diff

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 300cd51

Please sign in to comment.