Hi ,
I have a requirement to show realfont sizes in pt. I used the trick already mentioned in many other threads:-
The problem comes when i use style builder over some text and set the font size to some other metric say cm/mm. i don't see the converted value in pt in the real font size dropdown in pt. this works fine in Chrome and Firefox but on in IE.
I am using radeditor in ribbonbar mode. Is there a way to fix this.
Thanks,
AM
I have a requirement to show realfont sizes in pt. I used the trick already mentioned in many other threads:-
function OnClientSelectionChange(editor, args) { var tool = editor.getToolByName("RealFontSize"); if (tool ) { setTimeout(function () { debugger; var value = tool.get_value(); if (!value || value.indexOf('pt') >= 0) return; value.replace('px', ''); var newSize = parseInt(value) * 0.75; if (newSize.toString().indexOf('.25') >= 0) { newSize -= 0.25; } else if (newSize.toString().indexOf('.75') >= 0) { newSize += 0.25; } tool.set_value(newSize + 'pt'); }, 0); } }
The problem comes when i use style builder over some text and set the font size to some other metric say cm/mm. i don't see the converted value in pt in the real font size dropdown in pt. this works fine in Chrome and Firefox but on in IE.
I am using radeditor in ribbonbar mode. Is there a way to fix this.
Thanks,
AM