/
tinymce_init.tpl
52 lines (40 loc) · 2.15 KB
/
tinymce_init.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<script src="{url file='/tinymce/tinymce.min.js'}"></script>
<script>
tinymce.init({
selector: ".wysiwyg",
theme: "modern",
// height of the editor zone
//height: 500,
// Set it to true to display the menubar.
menubar : false,
// Use our smarty plugin to guess the best available language
language: "{tinymce_lang}",
// 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",
"fullscreen code youtube importcss"
],
// 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' d='tinymce.bo.default'}" ,
external_plugins: { "filemanager" : "{url file='/tinymce/filemanager/plugin.min.js'}"},
// Always paste as text, removing external formatting when pasting text
//paste_as_text: true,
// All newlines are <p>, Shift+enter inserts <br />
//force_p_newlines : true,
relative_urls : false,
// 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}",
importcss_append: true,
{/stylesheets}
// Use file to get an url without index.php or index_dev.php
document_base_url : "{url file="/"}"
});
</script>