Jaromi / jwysiwyg

Automatically exported from code.google.com/p/jwysiwyg
GNU General Public License v2.0
0 stars 0 forks source link

Internet Explorer 8 - not displaying Fontsize in-/decrease #107

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Using Microsoft Internet Explorer 8 on jWYSIWYG
2.
3.

What is the expected output? What do you see instead?
Expected would be the 'normal' layout of jWYSIWYG in a textarea. Instead,
it fails to display the font-size increase or decrease buttons. 

What version of the product are you using? On what operating system?
Latest version, 0.5. Windows Vista Ultimate, for as far as it matters. 

Please provide any additional information below.
Summary: using Internet Explorer 8, I am unable to see the font-size
increase and decrease buttons. I have manually switched some buttons on and
off, so there may be more. The buttons I have enabled are: Bold, Italic,
Underline, Subscript, Superscript, Link, Font-size increase, Font-size
decreaes, remove formatting.

Original issue reported on code.google.com by HugB...@gmail.com on 5 May 2009 at 10:22

GoogleCodeExporter commented 8 years ago
If you look at the code in jquery.wysiwyg.js on line 279, you'll see that for
increaseFontSize and decreaseFontSize, the 'visible' property is set to 'true  
&& !(
$.browser.msie )', which will only evaluate to true if the browser is not MSIE.

I'm pretty sure this has to do with lack of increase/decreaseFontSize support 
in IE's
execCommand implementation. This is a link to the possible command identifiers 
in IE:
http://msdn.microsoft.com/en-us/library/ms533049%28VS.85%29.aspx

It would be possible to write a special handler font sizes, if you pass it to 
the
'fn' argument. (And, of course, remove the  && !( $.browser.msie ) portion of 
the
visibility property) Since things are working in Mozilla, you would probably 
want to
write a separate menu item; call it something like increaseFontSizeIE.

Original comment by bullbran...@gmail.com on 31 Jul 2009 at 8:58

GoogleCodeExporter commented 8 years ago

Original comment by akzhan.a...@gmail.com on 27 Jun 2010 at 10:34