Skip to content

Commit

Permalink
v0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Pulges committed Oct 28, 2015
1 parent c63baa0 commit fd7cfeb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/wysihtml/rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Wysihtml
module Rails
VERSION = "0.5.0"
VERSION = "0.5.1"
end
end
8 changes: 5 additions & 3 deletions vendor/assets/javascripts/wysihtml-toolbar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license wysihtml v0.5.0
* @license wysihtml v0.5.1
* https://github.com/Voog/wysihtml
*
* Author: Christopher Blum (https://github.com/tiff)
Expand All @@ -10,7 +10,7 @@
*
*/
var wysihtml5 = {
version: "0.5.0",
version: "0.5.1",

// namespaces
commands: {},
Expand Down Expand Up @@ -9164,7 +9164,9 @@ wysihtml5.dom.parse = function(elementOrHtml_current, config_current) {
attributes["class"] = oldNode.getAttribute("class");
}
} else {
attributes["class"] = wysihtml5.lang.array(classes).unique().join(" ");
if(classes && classes.length > 0) {
attributes["class"] = wysihtml5.lang.array(classes).unique().join(" ");
}
}
} else {
// make sure that wysihtml5 temp class doesn't get stripped out
Expand Down
8 changes: 5 additions & 3 deletions vendor/assets/javascripts/wysihtml.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license wysihtml v0.5.0
* @license wysihtml v0.5.1
* https://github.com/Voog/wysihtml
*
* Author: Christopher Blum (https://github.com/tiff)
Expand All @@ -10,7 +10,7 @@
*
*/
var wysihtml5 = {
version: "0.5.0",
version: "0.5.1",

// namespaces
commands: {},
Expand Down Expand Up @@ -9164,7 +9164,9 @@ wysihtml5.dom.parse = function(elementOrHtml_current, config_current) {
attributes["class"] = oldNode.getAttribute("class");
}
} else {
attributes["class"] = wysihtml5.lang.array(classes).unique().join(" ");
if(classes && classes.length > 0) {
attributes["class"] = wysihtml5.lang.array(classes).unique().join(" ");
}
}
} else {
// make sure that wysihtml5 temp class doesn't get stripped out
Expand Down

0 comments on commit fd7cfeb

Please sign in to comment.