Skip to content

Commit fd7cfeb

Browse files
author
Oliver Pulges
committed
v0.5.1
1 parent c63baa0 commit fd7cfeb

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

lib/wysihtml/rails/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Wysihtml
22
module Rails
3-
VERSION = "0.5.0"
3+
VERSION = "0.5.1"
44
end
55
end

vendor/assets/javascripts/wysihtml-toolbar.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license wysihtml v0.5.0
2+
* @license wysihtml v0.5.1
33
* https://github.com/Voog/wysihtml
44
*
55
* Author: Christopher Blum (https://github.com/tiff)
@@ -10,7 +10,7 @@
1010
*
1111
*/
1212
var wysihtml5 = {
13-
version: "0.5.0",
13+
version: "0.5.1",
1414

1515
// namespaces
1616
commands: {},
@@ -9164,7 +9164,9 @@ wysihtml5.dom.parse = function(elementOrHtml_current, config_current) {
91649164
attributes["class"] = oldNode.getAttribute("class");
91659165
}
91669166
} else {
9167-
attributes["class"] = wysihtml5.lang.array(classes).unique().join(" ");
9167+
if(classes && classes.length > 0) {
9168+
attributes["class"] = wysihtml5.lang.array(classes).unique().join(" ");
9169+
}
91689170
}
91699171
} else {
91709172
// make sure that wysihtml5 temp class doesn't get stripped out

vendor/assets/javascripts/wysihtml.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license wysihtml v0.5.0
2+
* @license wysihtml v0.5.1
33
* https://github.com/Voog/wysihtml
44
*
55
* Author: Christopher Blum (https://github.com/tiff)
@@ -10,7 +10,7 @@
1010
*
1111
*/
1212
var wysihtml5 = {
13-
version: "0.5.0",
13+
version: "0.5.1",
1414

1515
// namespaces
1616
commands: {},
@@ -9164,7 +9164,9 @@ wysihtml5.dom.parse = function(elementOrHtml_current, config_current) {
91649164
attributes["class"] = oldNode.getAttribute("class");
91659165
}
91669166
} else {
9167-
attributes["class"] = wysihtml5.lang.array(classes).unique().join(" ");
9167+
if(classes && classes.length > 0) {
9168+
attributes["class"] = wysihtml5.lang.array(classes).unique().join(" ");
9169+
}
91689170
}
91699171
} else {
91709172
// make sure that wysihtml5 temp class doesn't get stripped out

0 commit comments

Comments
 (0)