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
86092cf8
Commit
86092cf8
authored
Nov 29, 2007
by
Nigel McNie
Browse files
Set the obscure tinymce options to use absolute urls from the correct wwwroot (I hope). Fixes #1730
parent
f1cdb383
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/blog/post.php
View file @
86092cf8
...
...
@@ -681,6 +681,7 @@ EOF;
$content_css
=
json_encode
(
theme_get_url
(
'style/tinymce.css'
));
$language
=
substr
(
current_language
(),
0
,
2
);
$wwwroot
=
json_encode
(
get_config
(
'wwwroot'
));
$tinymceinit
=
<<<EOF
<script type="text/javascript">
tinyMCE.init({
...
...
@@ -696,7 +697,9 @@ tinyMCE.init({
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "center",
content_css : {$content_css},
execcommand_callback : "blogpostExecCommandHandler"
execcommand_callback : "blogpostExecCommandHandler",
document_base_url: {$wwwroot},
relative_urls: false
});
</script>
EOF;
...
...
htdocs/lib/web.php
View file @
86092cf8
...
...
@@ -96,6 +96,7 @@ function &smarty($javascript = array(), $headers = array(), $pagestrings = array
$smarty
=
smarty_core
();
$wwwroot
=
get_config
(
'wwwroot'
);
$jswwwroot
=
json_encode
(
$wwwroot
);
$theme_list
=
array
();
...
...
@@ -163,7 +164,9 @@ tinyMCE.init({
button_tile_map: true,
{$tinymce_config}
language: '{$language}',
content_css : {$content_css}
content_css : {$content_css},
document_base_url: {$jswwwroot},
relative_urls: false
});
</script>
...
...
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