Skip to content

Commit 2607d41

Browse files
author
Oliver Pulges
committed
Update version to 0.4.5
1 parent fc87981 commit 2607d41

File tree

3 files changed

+417
-149
lines changed

3 files changed

+417
-149
lines changed

vendor/assets/javascripts/parser_rules/advanced_unwrap.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ var wysihtml5ParserRules = {
3636
/**
3737
* CSS Class white-list
3838
* Following CSS classes won't be removed when parsed by the wysihtml5 HTML parser
39+
* If all classes should pass "any" as classes value. Ex: "classes": "any"
3940
*/
4041
"classes": {
4142
"wysiwyg-clear-both": 1,
@@ -88,7 +89,7 @@ var wysihtml5ParserRules = {
8889
},
8990
"styles": {
9091
"float": ["left", "right"],
91-
"textAlign": ["left", "right", "center"]
92+
"text-align": ["left", "right", "center"]
9293
}
9394
},
9495

@@ -150,11 +151,16 @@ var wysihtml5ParserRules = {
150151
* - add_class: converts and deletes the given HTML4 attribute (align, clear, ...) via the given method to a css class
151152
* The following methods are implemented in wysihtml5.dom.parse:
152153
* - align_text: converts align attribute values (right/left/center/justify) to their corresponding css class "wysiwyg-text-align-*")
153-
* <p align="center">foo</p> ... becomes ... <p> class="wysiwyg-text-align-center">foo</p>
154+
* <p align="center">foo</p> ... becomes ... <p class="wysiwyg-text-align-center">foo</p>
154155
* - clear_br: converts clear attribute values left/right/all/both to their corresponding css class "wysiwyg-clear-*"
155156
* <br clear="all"> ... becomes ... <br class="wysiwyg-clear-both">
156157
* - align_img: converts align attribute values (right/left) on <img> to their corresponding css class "wysiwyg-float-*"
157-
*
158+
*
159+
* - add_style: converts and deletes the given HTML4 attribute (align) via the given method to a css style
160+
* The following methods are implemented in wysihtml5.dom.parse:
161+
* - align_text: converts align attribute values (right/left/center) to their corresponding css style)
162+
* <p align="center">foo</p> ... becomes ... <p style="text-align:center">foo</p>
163+
*
158164
* - remove: removes the element and its content
159165
*
160166
* - unwrap removes element but leaves content

0 commit comments

Comments
 (0)