Skip to content

Commit 5f4e9ad

Browse files
authored
Don't add useless title to links and images
1 parent b1f520a commit 5f4e9ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vendor/assets/javascripts/bootstrap-wysihtml5/wysihtml5x-toolbar.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12785,8 +12785,8 @@ wysihtml5.views.View = Base.extend(
1278512785

1278612786
// --------- Show url in tooltip when hovering links or images ---------
1278712787
var titlePrefixes = {
12788-
// IMG: "Image: ",
12789-
//A: "Link: "
12788+
IMG: "Image: ",
12789+
A: "Link: "
1279012790
};
1279112791

1279212792
dom.observe(element, "mouseover", function(event) {
@@ -12797,7 +12797,7 @@ wysihtml5.views.View = Base.extend(
1279712797
return;
1279812798
}
1279912799
var hasTitle = target.hasAttribute("title");
12800-
if(!hasTitle){
12800+
if(false && !hasTitle){
1280112801
title = titlePrefixes[nodeName] + (target.getAttribute("href") || target.getAttribute("src"));
1280212802
target.setAttribute("title", title);
1280312803
}

0 commit comments

Comments
 (0)