Skip to content

Commit

Permalink
Merge pull request otwcode#651 from Talvalin/issue_1248_upgrade_tinymce
Browse files Browse the repository at this point in the history
Committing TinyMCE config file
  • Loading branch information
elzj committed Jul 8, 2012
2 parents 4e89194 + 33fc68f commit cacd90e
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions public/javascripts/mce_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,28 @@ tinyMCE.init({
plugins : "paste",
paste_insert_word_content_callback : "convertWord",
paste_auto_cleanup_on_paste : true,
extended_valid_elements : "span[!class]",
// TinyMCE default behaviour uses CSS styling for most things; this is disabled for now
// because we're stripping those tags out.
inline_styles : false,




// Theme options - using the advanced theme for now and just limiting the buttons used - we may want to create a custom theme in future.
theme_advanced_buttons1 : "pasteword,|,bold,italic,underline,strikethrough,|,link,unlink,image,|,blockquote,|,bullist,numlist,|,justifyleft,justifycenter,justifyright,justifyfull,|,undo,redo",
theme_advanced_buttons1 : "pasteword,|,bold,italic,underline,strikethrough,|,link,unlink,image,|,blockquote,|,hr,|,bullist,numlist,|,justifyleft,justifycenter,|,undo,redo",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_resizing : true
theme_advanced_resizing : true,

content_css : "css/custom_content.css",
theme_advanced_font_sizes: "10px,12px,13px,14px,16px,18px,20px",
font_size_style_values : "10px,12px,13px,14px,16px,18px,20px",

formats : {
aligncenter : {block : 'center', exact : true},
underline : {inline : 'u', exact : true},
strikethrough : {inline : 'strike', exact : true}
}

});

Expand Down

0 comments on commit cacd90e

Please sign in to comment.