mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
GSOC #99 - Switch TinyMCE languages
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@43185 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b976f99054
commit
5868bb1e8f
@ -29,6 +29,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
||||
Requirements::javascriptTemplate("cms/javascript/tinymce.template.js", array(
|
||||
"ContentCSS" => (SSViewer::current_theme() ? "themes/" . SSViewer::current_theme() : project()) . "/css/editor.css",
|
||||
"BaseURL" => Director::absoluteBaseURL(),
|
||||
"Lang" => i18n::get_tinymce_lang()
|
||||
));
|
||||
}
|
||||
|
||||
|
@ -83,6 +83,7 @@ abstract class GenericDataAdmin extends LeftAndMain {
|
||||
Requirements::javascriptTemplate("cms/javascript/tinymce.template.js", array(
|
||||
"ContentCSS" => project() . "/css/editor.css",
|
||||
"BaseURL" => Director::absoluteBaseURL(),
|
||||
"Lang" => i18n::get_tinymce_lang()
|
||||
));
|
||||
}
|
||||
|
||||
|
@ -43,6 +43,7 @@ class NewsletterAdmin extends LeftAndMain {
|
||||
Requirements::javascriptTemplate("cms/javascript/tinymce.template.js", array(
|
||||
"ContentCSS" => project() . "/css/editor.css",
|
||||
"BaseURL" => Director::absoluteBaseURL(),
|
||||
"Lang" => i18n::get_tinymce_lang()
|
||||
));
|
||||
}
|
||||
|
||||
|
@ -45,6 +45,7 @@ class ReportAdmin extends LeftAndMain {
|
||||
Requirements::javascriptTemplate("cms/javascript/tinymce.template.js", array(
|
||||
"ContentCSS" => project() . "/css/editor.css",
|
||||
"BaseURL" => Director::absoluteBaseURL(),
|
||||
"Lang" => i18n::get_tinymce_lang()
|
||||
));
|
||||
}
|
||||
}
|
||||
|
@ -10,6 +10,7 @@ function nullConverter(url) {
|
||||
if((typeof tinyMCE != 'undefined')) {
|
||||
tinyMCE.init({
|
||||
mode : "specific_textareas",
|
||||
language: "$Lang",
|
||||
textarea_trigger : "tinymce",
|
||||
width: -1,
|
||||
height: -1,
|
||||
|
Loading…
Reference in New Issue
Block a user