[ 3 posts ]

Patrick Francis

  • Username: cube660
  • Joined: Wed Oct 26, 2011 6:33 am
  • Posts: 9
  • Offline
  • Profile

RTE - Problem with fontsizing

Post Posted: Fri Nov 25, 2011 8:50 am
+0-
Hi,

I am having a strange problem with changing the font size in YUI3/RTE.
I am getting webkit size results instead of the requested +'px' results. For instance a '6px' request results in font-size: xx-large and a '5px' request results in font-size: x-large, this translates into '24px' instead of the what I want. The sizes it cannot translate seem to get completely ignored. For instance, a '12px' request does nothing. My font values come from a standard select list in the string format of NUMpx, the format is verified in the console. I call for px changes this way:

Code:
FONTSIZE_exec_comm : function(val){
   console.log(val);   
   E.execCommand('fontsize',val);
 }



safari web inspector shows this:
Code:
 font[size=5] {
font-size: x-large;
}


Any help would be appreciated.

Dav Glass

  • Username: davglass
  • Joined: Thu Aug 28, 2008 9:28 am
  • Posts: 2088
  • Location: Marion, IL, US
  • Twitter: davglass
  • GitHub: davglass
  • Gists: davglass
  • IRC: davglass
  • Offline
  • Profile

Re: RTE - Problem with fontsizing

Post Posted: Tue Nov 29, 2011 11:20 am
+0-
Webkit changes the fonts behind the scene and Editor let's it. Editor doesn't clean that code up just yet, it will in the future, but for now you must clean it up on save.

Patrick Francis

  • Username: cube660
  • Joined: Wed Oct 26, 2011 6:33 am
  • Posts: 9
  • Offline
  • Profile

Re: RTE - Problem with fontsizing

Post Posted: Sun Dec 04, 2011 9:20 am
+0-
Quote:
but for now you must clean it up on save


Thanks for responding Dav, can you explain this further, do you mean removing the class on a before node change event?


Pat
  [ 3 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum