#19593069 IE6, 7에서 HTML 편집시 textarea가 작게 표현되는 버그 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@8130 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-03-03 08:54:19 +00:00
parent 8cd14c9e6c
commit e98c4074bf

View file

@ -837,6 +837,7 @@ Block = xe.createPlugin('BlockCommand', {
if (!sel) return false;
nodes = this.getBlockParents();
console.log(nodes);
n = parseInt(params[0], 10);
for(i=0,c=nodes.length; i<c; i++) {
@ -1190,8 +1191,9 @@ Font = xe.createPlugin('Font', {
*/
API_EXEC_FONTSTYLE : function(sender, params) {
var sel = this.oApp.getSelection(), styles = params[0], span, val;
if (sel.collapsed) {
if(!sel) return;
if(sel.collapsed) {
}
sel.styleRange(styles);
@ -1778,6 +1780,11 @@ EditMode = xe.createPlugin('EditMode', {
app.$textarea.show().css('height', '100%').css('width', '100%').css('border',0);
app.$richedit.hide().parent().css('overflow','hidden');
// Fix IE6 and 7 rendering bug
if ($.browser.msie && $.browser.version < 8) {
app.$textarea.css('height', app.$textarea.parent().height());
}
// set active button
this.$btn_wysiwyg_p.removeClass('active');
this.$btn_html_p.addClass('active');