mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
헤더 기능이 IE에서 동작하지 않던 버그 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6207 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
78b9eddba9
commit
fef1df6c91
1 changed files with 2 additions and 0 deletions
|
|
@ -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", []);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue