Skip to content

Commit

Permalink
Update paste rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Pulges committed Sep 10, 2014
1 parent 8b5d63b commit fc69312
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions parser_rules/advanced_and_extended.js
Original file line number Diff line number Diff line change
Expand Up @@ -646,13 +646,26 @@ var wysihtml5ParserRules = {
(function() {

var commonRules = wysihtml5.lang.object(wysihtml5ParserRules).clone(true);
commonRules.tags.style = false;
commonRules.tags.script = false;

commonRules.comments = false;
commonRules.selectors = { "a u": "unwrap" };
commonRules.selectors = {
"a u": "unwrap"
};

commonRules.tags.style = { "remove": 1 };
commonRules.tags.script = { "remove": 1 };
commonRules.tags.head = { "remove": 1 };

commonRules.tags.div.one_of_type.alignment_object = 1;
commonRules.tags.div.remove_action = "unwrap";
commonRules.tags.div.check_attributes.style = false;
commonRules.tags.div.keep_styles = {
"textAlign": /^((left)|(right)|(center)|(justify))$/i,
"float": 1
};
commonRules.tags.span.keep_styles = false;

var msOfficeRules = wysihtml5.lang.object(commonRules).clone(true);
msOfficeRules.tags.span.keep_styles = false;
msOfficeRules.classes = {};

window.wysihtml5ParserPasteRulesets = [
Expand Down

0 comments on commit fc69312

Please sign in to comment.