Added proper internationalization
This commit is contained in:
@@ -11,24 +11,29 @@
|
||||
// Set it to true to display the menubar.
|
||||
menubar : false,
|
||||
|
||||
// Available language are in Resources/js/tinymce/langs
|
||||
//language: "{lang attr='locale'}",
|
||||
// Use our smarty plugin to guess the best available language
|
||||
language: "{tinymce_lang}",
|
||||
|
||||
// Available language are in Resources/js/tinymce/plugins
|
||||
// See available plugins at http://www.tinymce.com/wiki.php/Plugins
|
||||
plugins: [
|
||||
"advlist autolink link image lists charmap print preview hr anchor pagebreak",
|
||||
"searchreplace wordcount visualblocks visualchars insertdatetime media nonbreaking",
|
||||
"table contextmenu directionality emoticons paste textcolor responsivefilemanager",
|
||||
"youtube"
|
||||
"fullscreen code youtube"
|
||||
],
|
||||
|
||||
toolbar1: "undo redo | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | styleselect | filemanager | link unlink anchor | image media | youtube | forecolor backcolor | print preview code ",
|
||||
image_advtab: true ,
|
||||
external_filemanager_path:"{url file='/tinymce/filemanager/'}",
|
||||
filemanager_title:"{intl l='Files manager'}" ,
|
||||
// See available controls at http://www.tinymce.com/wiki.php/Controls
|
||||
toolbar1: "undo redo | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | hr | styleselect | filemanager | code | fullscreen",
|
||||
toolbar2: "link unlink anchor | image responsivefilemanager media youtube | forecolor backcolor | charmap | print preview ",
|
||||
|
||||
image_advtab: true,
|
||||
|
||||
// File manager configuration
|
||||
external_filemanager_path: "{url file='/tinymce/filemanager/'}",
|
||||
filemanager_title: "{intl l='File manager'}" ,
|
||||
external_plugins: { "filemanager" : "{url file='/tinymce/filemanager/plugin.min.js'}"},
|
||||
|
||||
// Always paste as text, removing external formatting
|
||||
// Always paste as text, removing external formatting when pasting text
|
||||
//paste_as_text: true,
|
||||
|
||||
// All newlines are <p>, Shift+enter inserts <br />
|
||||
@@ -37,6 +42,9 @@
|
||||
relative_urls : false,
|
||||
document_base_url : "{url path="/media"}",
|
||||
|
||||
content_css: "{stylesheets file='assets/css/editor.less' filters='less' source='Tinymce'}{$asset_url}{/stylesheets}"
|
||||
// Styles (CSS or LESS) available in the editor could be defined in assets/css/editor.less file.
|
||||
{stylesheets file='assets/css/editor.less' filters='less' source='Tinymce'}
|
||||
content_css: "{$asset_url}"
|
||||
{/stylesheets}
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user