| Page 1 of 1 | [ 3 posts ] |
|
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. |
|
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.
|
|
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 |
| Page 1 of 1 | [ 3 posts ] |
| 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 |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group