|
Apply font size increase script on text entered using fckeditor
I have made provision to enter text using fckeditor
while displaying this text i found the "increase font size" java script is not working on this text
I am using following java script
function FontSizeSet()
{
var el, n = 1;
while (el = document.getElementById('pagetext' + n++))
el.style.fontSize = fontSize + 'pt';
return false;
}
function SetFontLarger()
{
if (fontSize < 11)
fontSize++;
return FontSizeSet();
}
function SetFontSmaller()
{
if (fontSize > 9)
fontSize--;
return FontSizeSet();
}
this works fine for text stored / entered without using fckeditor
i will be obliged if anyone can help me on this ...
Thanks in advance
Last edited by vikaspa; 10-29-2008 at 01:50 AM..
Reason: provide more details
|