Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. /// <summary>
  2. /// This plugin will override original paste using ctrl+v with Paste As Plain Text.
  3. /// </summary>
  4. [TinyMCEPluginNonVisual(
  5. PlugInName = "DefaultPasteAsPlainText",
  6. AlwaysEnabled = true,
  7. ServerSideOnly = true,
  8. EditorInitConfigurationOptions = @"{
  9. paste_text_sticky : true,
  10. paste_text_sticky_default: true,
  11. paste_auto_cleanup_on_paste : true,
  12. paste_strip_class_attributes: 'all',
  13. formats: {
  14. removeformat : [
  15. {selector : 'b,strong,em,i,font,u,strike,h1,h2,h3,h4,h5,h6', remove : 'all', split : true, expand : false, block_expand : true, deep : true},
  16. {selector : 'span', attributes : ['style', 'class'], remove : 'empty', split : true, expand : false, deep : true},
  17. {selector : '*', attributes : ['style', 'class'], split : false, expand : false, deep : true}
  18. ]
  19. },
  20. extended_valid_elements : 'td[style|data-mce-style|class|align|valign|title|hspace|vspace|width|height|scope|name]' }")]
  21. public class DefaultSettingsPlugin
  22. {
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement