Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
e4dda056
Commit
e4dda056
authored
Feb 15, 2012
by
Francois Marier
Committed by
Gerrit Code Review
Feb 15, 2012
Browse files
Merge "Changed Tiny-Mce default spellchecker to aspell"
parents
d23200b1
32664225
Changes
5
Hide whitespace changes
Inline
Side-by-side
htdocs/js/tinymce/README.Mahara
View file @
e4dda056
...
@@ -11,3 +11,5 @@ Changes:
...
@@ -11,3 +11,5 @@ Changes:
* Added all of the language packs
* Added all of the language packs
* Removed unused plugins/media/ to fix Debian bug #591200
* Removed unused plugins/media/ to fix Debian bug #591200
* Removed the standard spellchecker plugin and replace with the php spellchecker plugin
* Removed the standard spellchecker plugin and replace with the php spellchecker plugin
* Edited spellchecker config.php to check if a path for aspell is set
* Renamed error function in plugins/spellchecker/includes/general.php to mceError
htdocs/js/tinymce/plugins/spellchecker/config.php
View file @
e4dda056
...
@@ -6,6 +6,14 @@
...
@@ -6,6 +6,14 @@
*/
*/
// General settings
// General settings
$config
[
'general.engine'
]
=
'GoogleSpell'
;
$config
[
'general.engine'
]
=
'GoogleSpell'
;
define
(
'INTERNAL'
,
1
);
require_once
(
dirname
(
__FILE__
)
.
'/../../../../init.php'
);
$aspellpath
=
get_config
(
'pathtoaspell'
);
if
(
file_exists
(
$aspellpath
)
&&
is_executable
(
$aspellpath
))
{
$config
[
'general.engine'
]
=
'PSpellShell'
;
}
//$config['general.engine'] = 'PSpell';
//$config['general.engine'] = 'PSpell';
//$config['general.engine'] = 'PSpellShell';
//$config['general.engine'] = 'PSpellShell';
//$config['general.remote_rpc_url'] = 'http://some.other.site/some/url/rpc.php';
//$config['general.remote_rpc_url'] = 'http://some.other.site/some/url/rpc.php';
...
@@ -18,7 +26,7 @@
...
@@ -18,7 +26,7 @@
// PSpellShell settings
// PSpellShell settings
$config
[
'PSpellShell.mode'
]
=
PSPELL_FAST
;
$config
[
'PSpellShell.mode'
]
=
PSPELL_FAST
;
$config
[
'PSpellShell.aspell'
]
=
'/usr/bin/
aspell
'
;
$config
[
'PSpellShell.aspell'
]
=
$
aspell
path
;
$config
[
'PSpellShell.tmp'
]
=
'/tmp'
;
$config
[
'PSpellShell.tmp'
]
=
'/tmp'
;
// Windows PSpellShell settings
// Windows PSpellShell settings
...
...
htdocs/js/tinymce/plugins/spellchecker/includes/general.php
View file @
e4dda056
...
@@ -74,7 +74,7 @@ function info($msg) {
...
@@ -74,7 +74,7 @@ function info($msg) {
$log
->
info
(
implode
(
', '
,
$args
));
$log
->
info
(
implode
(
', '
,
$args
));
}
}
function
e
rror
(
$msg
)
{
function
mceE
rror
(
$msg
)
{
$args
=
func_get_args
();
$args
=
func_get_args
();
$log
=
getLogger
();
$log
=
getLogger
();
...
@@ -95,4 +95,4 @@ function fatal($msg) {
...
@@ -95,4 +95,4 @@ function fatal($msg) {
$log
->
fatal
(
implode
(
', '
,
$args
));
$log
->
fatal
(
implode
(
', '
,
$args
));
}
}
?>
?>
\ No newline at end of file
htdocs/lib/config-defaults.php
View file @
e4dda056
...
@@ -197,6 +197,7 @@ $cfg->maximageresizememory = 104857600;
...
@@ -197,6 +197,7 @@ $cfg->maximageresizememory = 104857600;
$cfg
->
pathtogzip
=
'/bin/gzip'
;
$cfg
->
pathtogzip
=
'/bin/gzip'
;
$cfg
->
pathtounzip
=
'/usr/bin/unzip'
;
$cfg
->
pathtounzip
=
'/usr/bin/unzip'
;
$cfg
->
pathtozip
=
'/usr/bin/zip'
;
$cfg
->
pathtozip
=
'/usr/bin/zip'
;
$cfg
->
pathtoaspell
=
'/usr/bin/aspell'
;
$cfg
->
ziprecursearg
=
'-r'
;
$cfg
->
ziprecursearg
=
'-r'
;
$cfg
->
unzipdirarg
=
'-d'
;
$cfg
->
unzipdirarg
=
'-d'
;
$cfg
->
unziplistarg
=
'-l'
;
$cfg
->
unziplistarg
=
'-l'
;
...
...
htdocs/lib/web.php
View file @
e4dda056
...
@@ -123,6 +123,7 @@ function smarty($javascript = array(), $headers = array(), $pagestrings = array(
...
@@ -123,6 +123,7 @@ function smarty($javascript = array(), $headers = array(), $pagestrings = array(
$toolbar_align
=
'left'
;
$toolbar_align
=
'left'
;
if
(
$check
[
$key
]
==
'tinymce'
)
{
if
(
$check
[
$key
]
==
'tinymce'
)
{
$spellchecker_rpc
=
$jsroot
.
'tinymce/plugins/spellchecker/rpc.php'
;
$tinymce_config
=
<<<EOF
$tinymce_config
=
<<<EOF
mode: "none",
mode: "none",
theme: "advanced",
theme: "advanced",
...
@@ -133,6 +134,7 @@ function smarty($javascript = array(), $headers = array(), $pagestrings = array(
...
@@ -133,6 +134,7 @@ function smarty($javascript = array(), $headers = array(), $pagestrings = array(
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "{$toolbar_align}",
theme_advanced_toolbar_align : "{$toolbar_align}",
fix_list_elements: true,
fix_list_elements: true,
spellchecker_rpc_url : "{$spellchecker_rpc}",
//width: '512',
//width: '512',
EOF;
EOF;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment