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
c249c548
Commit
c249c548
authored
Jul 27, 2007
by
Nigel McNie
Committed by
Nigel McNie
Jul 27, 2007
Browse files
Set the language of the WYSIWYG editor correctly, to support translations
parent
8c1e5567
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/blog/post.php
View file @
c249c548
...
...
@@ -665,12 +665,14 @@ EOF;
// the execcommand_callback.
$content_css
=
json_encode
(
theme_get_url
(
'style/tinymce.css'
));
$language
=
substr
(
get_config
(
'lang'
),
0
,
2
);
$tinymceinit
=
<<<EOF
<script type="text/javascript">
tinyMCE.init({
mode: "textareas",
editor_selector: 'wysiwyg',
button_tile_map: true,
language: '{$language}',
theme: "advanced",
plugins: "table,emotions,iespell,inlinepopups",
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,forecolor,backcolor,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,hr,emotions,iespell,cleanup,separator,link,unlink,image,separator,code",
...
...
htdocs/lib/web.php
View file @
c249c548
...
...
@@ -79,12 +79,14 @@ function &smarty($javascript = array(), $headers = array(), $pagestrings = array
}
else
{
$content_css
=
json_encode
(
theme_get_url
(
'style/tinymce.css'
));
$language
=
substr
(
get_config
(
'lang'
),
0
,
2
);
$headers
[]
=
<<<EOF
<script type="text/javascript">
tinyMCE.init({
mode: "textareas",
editor_selector: 'wysiwyg',
button_tile_map: true,
language: '{$language}',
theme: "advanced",
plugins: "table,emotions,iespell,inlinepopups,paste",
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,forecolor,backcolor,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,hr,emotions,iespell,cleanup,separator,link,unlink,separator,code",
...
...
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