This project has moved. For the latest updates, please go here.

Increase/Decrease Font Size does not work in Chrome

Jul 13, 2012 at 8:01 AM
Edited Jul 13, 2012 at 8:02 AM


Increase/Deacrease font size buttons do not work in Chrome.

Someone who already faced this issue, please help!!!




Sep 14, 2012 at 12:52 AM

Hey man,

Looks like you want to edit increaseFontSize

Approximately line 209 in the js file.

increaseFontSize: function () {
	var CurrentFontSize = parseInt(this.qc("fontSize"));
	if ($.browser.msie) {"fontSize", false, CurrentFontSize + 1);
	} else if ($.browser.safari) {
		this.getRange().surroundContents($(this.iframe[0].contentWindow.document.createElement("span")).css("font-size", "larger")[0]);
	} else if (($ {"fontSize", false, CurrentFontSize + 1);
	} else {"increaseFontSize", false, "big");

Two items worth noting here:

1) Chrome was not being targeted.

2) this.qc("fontSize") + 1 fails because it thinks it is a string.  Make sure to convert to integer and then it works.

You may need to do the same on the decreaseFontSize too.