헤더값 추측을 IE에서만 사용하도록 함

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6208 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2009-04-28 01:43:53 +00:00
parent fef1df6c91
commit 9f5f09c48f

View file

@ -5783,7 +5783,7 @@ xe.XE_FormatWithSelectUI = jQuery.Class({
var blockName = this.oApp.getWYSIWYGDocument().queryCommandValue("FormatBlock");
if (!blockName) return (this.elFormatSelect.selectedIndex = 0);
if (/([0-9])/.test(blockName)) blockName = 'h'+(RegExp.$1);
if (jQuery.browser.msie && /([0-9])/.test(blockName)) blockName = 'h'+(RegExp.$1);
this.elFormatSelect.value = blockName.toLowerCase();
if(this.elFormatSelect.selectedIndex < 0) this.elFormatSelect.selectedIndex = 0;