Skip to content

Commit

Permalink
javascript update
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Pulges committed Dec 12, 2013
1 parent 4d140bf commit e3d9aa4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions vendor/assets/javascripts/wysihtml5x-toolbar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license wysihtml5x v0.4.0-beta2
* @license wysihtml5x v0.4.0
* https://github.com/Edicy/wysihtml5
*
* Author: Christopher Blum (https://github.com/tiff)
Expand All @@ -10,7 +10,7 @@
*
*/
var wysihtml5 = {
version: "0.4.0-beta2",
version: "0.4.0",

// namespaces
commands: {},
Expand Down Expand Up @@ -5516,7 +5516,10 @@ wysihtml5.commands.bold = {
anchor = anchors[i];
anchor.removeAttribute("class");
for (j in attributes) {
anchor.setAttribute(j, attributes[j]);
// Do not set attribute "text" as it is meant for setting string value if created link has no textual data
if (j !== "text") {
anchor.setAttribute(j, attributes[j]);
}
}
}

Expand Down
9 changes: 6 additions & 3 deletions vendor/assets/javascripts/wysihtml5x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license wysihtml5x v0.4.0-beta2
* @license wysihtml5x v0.4.0
* https://github.com/Edicy/wysihtml5
*
* Author: Christopher Blum (https://github.com/tiff)
Expand All @@ -10,7 +10,7 @@
*
*/
var wysihtml5 = {
version: "0.4.0-beta2",
version: "0.4.0",

// namespaces
commands: {},
Expand Down Expand Up @@ -5516,7 +5516,10 @@ wysihtml5.commands.bold = {
anchor = anchors[i];
anchor.removeAttribute("class");
for (j in attributes) {
anchor.setAttribute(j, attributes[j]);
// Do not set attribute "text" as it is meant for setting string value if created link has no textual data
if (j !== "text") {
anchor.setAttribute(j, attributes[j]);
}
}
}

Expand Down

0 comments on commit e3d9aa4

Please sign in to comment.