{I" class:ETI"ProcessedAsset; FI"logical_path; TI"*parser_rules/advanced_and_extended.js; FI" pathname; TI"œ/Users/gomayonqui/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/wysihtml-rails-0.5.0.beta13/vendor/assets/javascripts/parser_rules/advanced_and_extended.js; FI"content_type; TI"application/javascript; TI" mtime; Tl+µÄVI"length; TiaHI"digest; TI"%122c91c676d52010f1694f1b66d6917a; FI"source; TI"aH/** * Full HTML5 compatibility rule set * Loosened and extended ruleset. Allows more freedom on user side * These rules define which tags and CSS classes are supported and which tags should be specially treated. */ var wysihtml5ParserRulesDefaults = { "blockLevelEl": { "keep_styles": { "textAlign": /^((left)|(right)|(center)|(justify))$/i, "float": 1 }, "add_style": { "align": "align_text" }, "check_attributes": { "id": "any" } }, "makeDiv": { "rename_tag": "div", "one_of_type": { "alignment_object": 1 }, "remove_action": "unwrap", "keep_styles": { "textAlign": 1, "float": 1 }, "add_style": { "align": "align_text" }, "check_attributes": { "id": "any" } } }; var wysihtml5ParserRules = { /** * CSS Class white-list * Following CSS classes won't be removed when parsed by the wysihtml5 HTML parser * If all classes should pass "any" as classes value. Ex: "classes": "any" */ "classes": "any", /* blacklist of classes is only available if classes is set to any */ "classes_blacklist": { "Apple-interchange-newline": 1, "MsoNormal": 1, "MsoPlainText": 1 }, "type_definitions": { "alignment_object": { "classes": { "wysiwyg-text-align-center": 1, "wysiwyg-text-align-justify": 1, "wysiwyg-text-align-left": 1, "wysiwyg-text-align-right": 1, "wysiwyg-float-left": 1, "wysiwyg-float-right": 1 }, "styles": { "float": ["left", "right"], "text-align": ["left", "right", "center"] } }, "valid_image_src": { "attrs": { "src": /^[^data\:]/i } }, "text_color_object": { "styles": { "color": true, "background-color": true } }, "text_fontsize_object": { "styles": { "font-size": true } }, "text_formatting_object": { "classes": { "wysiwyg-color-aqua": 1, "wysiwyg-color-black": 1, "wysiwyg-color-blue": 1, "wysiwyg-color-fuchsia": 1, "wysiwyg-color-gray": 1, "wysiwyg-color-green": 1, "wysiwyg-color-lime": 1, "wysiwyg-color-maroon": 1, "wysiwyg-color-navy": 1, "wysiwyg-color-olive": 1, "wysiwyg-color-purple": 1, "wysiwyg-color-red": 1, "wysiwyg-color-silver": 1, "wysiwyg-color-teal": 1, "wysiwyg-color-white": 1, "wysiwyg-color-yellow": 1, "wysiwyg-font-size-large": 1, "wysiwyg-font-size-larger": 1, "wysiwyg-font-size-medium": 1, "wysiwyg-font-size-small": 1, "wysiwyg-font-size-smaller": 1, "wysiwyg-font-size-x-large": 1, "wysiwyg-font-size-x-small": 1, "wysiwyg-font-size-xx-large": 1, "wysiwyg-font-size-xx-small": 1 } } }, "comments": 1, // if set allows comments to pass /** * Tag list * * The following options are available: * * - add_class: converts and deletes the given HTML4 attribute (align, clear, ...) via the given method to a css class * The following methods are implemented in wysihtml5.dom.parse: * - align_text: converts align attribute values (right/left/center/justify) to their corresponding css class "wysiwyg-text-align-*") *
foo
... becomes ...class="wysiwyg-text-align-center">foo
* - clear_br: converts clear attribute values left/right/all/both to their corresponding css class "wysiwyg-clear-*" *