Skip to content

Commit 300cd51

Browse files
committedJan 6, 2012
remove support for the serverside spell checker since most modern browsers do this natively
1 parent 2bd090c commit 300cd51

File tree

10 files changed

+2
-437
lines changed

10 files changed

+2
-437
lines changed
 

‎docs/gotcha.txt

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ save you many hours of grief.
3636

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

39+
* Support for server-side spell checking in the Rich Editor TinyMCE has been removed.
40+
3941
7.10.23
4042
--------------------------------------------------------------------
4143
* The default_search2 template had a bad template attachment pointing to

‎etc/WebGUI.conf.original

-17
Original file line numberDiff line numberDiff line change
@@ -966,23 +966,6 @@
966966
"WebGUI::Image::Graph::XYGraph::Line"
967967
],
968968

969-
# Here you can define the dictionaries that are available through the tinyMCE spellchecker. You should set
970-
# id to the name the dictionary is known by ASpell (eg. en or en_US or nl), use the name parameter to set
971-
# the name the dictionary is displayed with in tinyMCE. To set the default dictionary please set the 'default'
972-
# parameter.
973-
974-
#"availableDictionaries" : [
975-
# {
976-
# "id" : "en_US",
977-
# "name" : "English",
978-
# "default" : "1"
979-
# },
980-
# {
981-
# "id" : "nl",
982-
# "name" : "Dutch"
983-
# }
984-
#],
985-
986969
# Optional script to run upon successful login. The script can contain macros
987970
# ex: /data/WebGUI/sbin/doLogin.pl --configFile=dev.localhost.localdomain.conf --loginPage=^PageUrl();
988971

‎lib/WebGUI/Asset/RichEdit.pm

-14
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ override getEditForm => sub {
259259
'save' => $i18n->get('save'),
260260
'preview' => $i18n->get('preview'),
261261
'print' => $i18n->get('print'),
262-
'spellchecker' => $i18n->get('Server Side Spell Checker'),
263262
'code' => $i18n->get('code'),
264263
'fullscreen' => $i18n->get('fullscreen'),
265264
'help' => $i18n->get('help'),
@@ -308,9 +307,6 @@ override getEditForm => sub {
308307
name=>"toolbarRow3",
309308
checked=>$checked3
310309
}).'</td><td>';
311-
if ($key eq 'spellchecker' && !($self->session->config->get('availableDictionaries'))) {
312-
$buttonGrid .= $i18n->get('no dictionaries');
313-
}
314310
$buttonGrid .= '</td>
315311
</tr>
316312
';
@@ -377,13 +373,6 @@ sub getConfig {
377373
wg_userIsVisitor => $self->session->user->isVisitor ? JSON::true() : JSON::false(),
378374
);
379375
foreach my $button (@toolbarButtons) {
380-
if ( $button eq "spellchecker" && $self->session->config->get('availableDictionaries') ) {
381-
push( @plugins, "-wgspellchecker" );
382-
$config{spellchecker_rpc_url} = $self->session->url->gateway( '', "op=spellCheck" );
383-
$config{spellchecker_languages} = join( ',',
384-
map { ( $_->{default} ? '+' : '' ) . $_->{name} . '=' . $_->{id} }
385-
@{ $self->session->config->get('availableDictionaries') } );
386-
}
387376
push( @plugins, "table" ) if ( $button eq "tablecontrols" );
388377
push( @plugins, "save" ) if ( $button eq "save" );
389378
push( @plugins, "advhr" ) if ( $button eq "advhr" );
@@ -475,9 +464,6 @@ sub getLoadPlugins {
475464
my ( $self ) = @_;
476465
my %loadPlugins;
477466
for my $button ( $self->getAllButtons ) {
478-
if ( $button eq 'spellchecker' ) {
479-
$loadPlugins{wgspellchecker} = $self->session->url->extras("tinymce-webgui/plugins/wgspellchecker/editor_plugin.js");
480-
}
481467
if ( $button eq 'wginsertimage' ) {
482468
$loadPlugins{wginsertimage} = $self->session->url->extras("tinymce-webgui/plugins/wginsertimage/editor_plugin.js");
483469
}

‎lib/WebGUI/Operation.pm

-4
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,6 @@ sub getOperations {
256256
'moveColorDown' => 'Graphics',
257257
'moveColorUp' => 'Graphics',
258258
'removeColorFromPalette' => 'Graphics',
259-
260-
'spellCheck' => 'SpellCheck',
261-
'suggestWords' => 'SpellCheck',
262-
'addWordToDictionary' => 'SpellCheck',
263259
};
264260
}
265261

‎www/extras/tinymce-webgui/plugins/wgspellchecker/add-word.diff

-48
This file was deleted.

‎www/extras/tinymce-webgui/plugins/wgspellchecker/css/content.css

-1
This file was deleted.

‎www/extras/tinymce-webgui/plugins/wgspellchecker/editor_plugin.js

-1
This file was deleted.

‎www/extras/tinymce-webgui/plugins/wgspellchecker/editor_plugin_src.js

-348
This file was deleted.
Binary file not shown.

‎www/extras/tinymce-webgui/plugins/wgspellchecker/langs/en.js

-4
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.