summaryrefslogtreecommitdiffstats
path: root/askbot/skins/default/templates/meta/tinymce.html
blob: 6f8a6018fdec751449f412e248560d5c727169d6 (plain)
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
<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'] || '');
        },
        plugins: 'askbot_imageuploader,askbot_attachment',
        theme : 'advanced',
        theme_advanced_toolbar_location : 'top',
        theme_advanced_toolbar_align: 'left',
        theme_advanced_buttons1 : 'bold,italic,underline,|,bullist,numlist,|,undo,redo,|,link,unlink,askbot_imageuploader,askbot_attachment',
        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;
    }
    .defaultSkin span.mce_askbot_imageuploader {
        background-position: -380px 0px;
    }
    .defaultSkin span.mce_askbot_attachment {
        background-position: -520px 0px;
    }
</style>