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:
Andrew O'Neil 2007-10-07 23:48:05 +00:00
parent b976f99054
commit 5868bb1e8f
5 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
Requirements::javascriptTemplate("cms/javascript/tinymce.template.js", array( Requirements::javascriptTemplate("cms/javascript/tinymce.template.js", array(
"ContentCSS" => (SSViewer::current_theme() ? "themes/" . SSViewer::current_theme() : project()) . "/css/editor.css", "ContentCSS" => (SSViewer::current_theme() ? "themes/" . SSViewer::current_theme() : project()) . "/css/editor.css",
"BaseURL" => Director::absoluteBaseURL(), "BaseURL" => Director::absoluteBaseURL(),
"Lang" => i18n::get_tinymce_lang()
)); ));
} }

View File

@ -83,6 +83,7 @@ abstract class GenericDataAdmin extends LeftAndMain {
Requirements::javascriptTemplate("cms/javascript/tinymce.template.js", array( Requirements::javascriptTemplate("cms/javascript/tinymce.template.js", array(
"ContentCSS" => project() . "/css/editor.css", "ContentCSS" => project() . "/css/editor.css",
"BaseURL" => Director::absoluteBaseURL(), "BaseURL" => Director::absoluteBaseURL(),
"Lang" => i18n::get_tinymce_lang()
)); ));
} }

View File

@ -43,6 +43,7 @@ class NewsletterAdmin extends LeftAndMain {
Requirements::javascriptTemplate("cms/javascript/tinymce.template.js", array( Requirements::javascriptTemplate("cms/javascript/tinymce.template.js", array(
"ContentCSS" => project() . "/css/editor.css", "ContentCSS" => project() . "/css/editor.css",
"BaseURL" => Director::absoluteBaseURL(), "BaseURL" => Director::absoluteBaseURL(),
"Lang" => i18n::get_tinymce_lang()
)); ));
} }

View File

@ -45,6 +45,7 @@ class ReportAdmin extends LeftAndMain {
Requirements::javascriptTemplate("cms/javascript/tinymce.template.js", array( Requirements::javascriptTemplate("cms/javascript/tinymce.template.js", array(
"ContentCSS" => project() . "/css/editor.css", "ContentCSS" => project() . "/css/editor.css",
"BaseURL" => Director::absoluteBaseURL(), "BaseURL" => Director::absoluteBaseURL(),
"Lang" => i18n::get_tinymce_lang()
)); ));
} }
} }

View File

@ -10,6 +10,7 @@ function nullConverter(url) {
if((typeof tinyMCE != 'undefined')) { if((typeof tinyMCE != 'undefined')) {
tinyMCE.init({ tinyMCE.init({
mode : "specific_textareas", mode : "specific_textareas",
language: "$Lang",
textarea_trigger : "tinymce", textarea_trigger : "tinymce",
width: -1, width: -1,
height: -1, height: -1,