summaryrefslogtreecommitdiffstats
path: root/askbot/skins/default/templates/meta/tinymce.html
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/skins/default/templates/meta/tinymce.html')
-rw-r--r--askbot/skins/default/templates/meta/tinymce.html41
1 files changed, 41 insertions, 0 deletions
diff --git a/askbot/skins/default/templates/meta/tinymce.html b/askbot/skins/default/templates/meta/tinymce.html
new file mode 100644
index 00000000..0f12d960
--- /dev/null
+++ b/askbot/skins/default/templates/meta/tinymce.html
@@ -0,0 +1,41 @@
+<script type="text/javascript" src="{{ 'js/tinymce/tiny_mce.js'|media }}" ></script>
+<script type="text/javascript" >
+ tinyMCE.init({
+ content_css: '{{ "style/tinymce/content.css"|media }}',
+ //editor_css: '{{ "style/tinymce/ui.css"|media }}',
+ force_br_newlines: true,
+ force_p_newlines: false,
+ forced_root_block: '',
+ mode : 'textareas',
+ oninit: function(){
+ tinyMCE.activeEditor.setContent(askbot['data']['editorContent'] || '');
+ },
+ theme : 'advanced',
+ theme_advanced_toolbar_location : 'top',
+ theme_advanced_toolbar_align: 'left',
+ theme_advanced_buttons1 : 'bold,italic,underline,|,bullist,numlist,|,undo,redo,|,link,unlink,image',
+ theme_advanced_buttons2 : '',
+ theme_advanced_buttons3 : '',
+ theme_advanced_path: false,
+ theme_advanced_resizing: true,
+ theme_advanced_resize_horizontal: false,
+ theme_advanced_statusbar_location: 'bottom',
+ width: '723',
+ height: '250'
+ //theme_advanced_font_sizes: "10px,12px,13px,14px,16px,18px,20px",
+ //font_size_style_values : "10px,12px,13px,14px,16px,18px,20px",
+ });
+</script>
+<style type="text/css">
+ .defaultSkin table.mceLayout,
+ .defaultSkin table.mceLayout tr.mceFirst td {
+ border: none;
+ }
+ .defaultSkin table.mceLayout tr.mceLast td {
+ border-bottom: none;
+ }
+ .mceStatusbar {
+ height: 5px;
+ background: #fff;
+ }
+</style>