Skip to content

Instantly share code, notes, and snippets.

@Schepp
Created December 5, 2013 10:00
Show Gist options
  • Save Schepp/7802899 to your computer and use it in GitHub Desktop.
Save Schepp/7802899 to your computer and use it in GitHub Desktop.
Configure TinyMCE in a way that it filters out Word tagsoup
tinyMCE.init({
mode : "exact",
theme : "advanced",
language : "de",
valid_elements : "p,em/i,strong/b,br,strike,u,ul,ol,li",
theme_advanced_buttons1 : "undo,redo,bold,italic,underline,strikethrough,bullist,numlist,outdent,indent,code",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
apply_source_formatting : true,
entity_encoding : "named",
strict_loading_mode : false,
debug : false
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment