Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// <summary>
- /// This plugin will override original paste using ctrl+v with Paste As Plain Text.
- /// </summary>
- [TinyMCEPluginNonVisual(
- PlugInName = "DefaultPasteAsPlainText",
- AlwaysEnabled = true,
- ServerSideOnly = true,
- EditorInitConfigurationOptions = @"{
- paste_text_sticky : true,
- paste_text_sticky_default: true,
- paste_auto_cleanup_on_paste : true,
- paste_strip_class_attributes: 'all',
- formats: {
- removeformat : [
- {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},
- {selector : 'span', attributes : ['style', 'class'], remove : 'empty', split : true, expand : false, deep : true},
- {selector : '*', attributes : ['style', 'class'], split : false, expand : false, deep : true}
- ]
- },
- extended_valid_elements : 'td[style|data-mce-style|class|align|valign|title|hspace|vspace|width|height|scope|name]' }")]
- public class DefaultSettingsPlugin
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement