헤더 기능이 IE에서 동작하지 않던 버그 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6207 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2009-04-28 01:42:25 +00:00
parent 78b9eddba9
commit fef1df6c91

View file

@ -5783,6 +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);
this.elFormatSelect.value = blockName.toLowerCase();
if(this.elFormatSelect.selectedIndex < 0) this.elFormatSelect.selectedIndex = 0;
@ -5791,6 +5792,7 @@ xe.XE_FormatWithSelectUI = jQuery.Class({
$ON_SET_FORMAT_FROM_SELECT_UI : function(){
var sFormat = this.elFormatSelect.value;
if(!sFormat) return;
if(jQuery.browser.msie) sFormat = '<'+sFormat+'>';
this.oApp.exec("EXECCOMMAND", ["FormatBlock", false, sFormat]);
this.oApp.exec("CHECK_STYLE_CHANGE", []);