ep_font_family
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -58,4 +58,4 @@ var eejs = require('ep_etherpad-lite/node/eejs/'); | ||
var fontName = font.substring(4); | ||
lineContent = lineContent.replace("<"+font, "<span style='font-family:"+fontName+"'"); | ||
lineContent = lineContent.replace("</"+font, "</span"); | ||
lineContent = lineContent.replaceAll("<"+font, "<span style='font-family:"+fontName+"'"); | ||
lineContent = lineContent.replaceAll("</"+font, "</span"); | ||
} | ||
@@ -65,1 +65,6 @@ }); | ||
} | ||
String.prototype.replaceAll = function(str1, str2, ignore) | ||
{ | ||
return this.replace(new RegExp(str1.replace(/([\/\,\!\\\^\$\{\}\[\]\(\)\.\*\+\?\|\<\>\-\&])/g,"\\$&"),(ignore?"gi":"g")),(typeof(str2)=="string")?str2.replace(/\$/g,"$$$$"):str2); | ||
} |
{ | ||
"description": "Add support for different Fonts", | ||
"name": "ep_font_family", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "John McLear", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9133
235