#18847115 - drEditor에서 fold 컴포넌트 기능 동작 스크립트 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7373 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2010-04-19 10:42:59 +00:00
parent 9e36140660
commit b7f8e34a2e

View file

@ -248,6 +248,19 @@ jQuery(function($) {
});
}
/* 단락에디터 fold 컴포넌트 펼치기/접기 */
var drEditorFold = $('.xe_content .fold_button');
if(drEditorFold.size()) {
var fold_container = $('div.fold_container', drEditorFold);
$('button.more', drEditorFold).click(function() {
$(this).hide().next('button').show().parent().next(fold_container).show();
});
$('button.less', drEditorFold).click(function() {
$(this).hide().prev('button').show().parent().next(fold_container).hide();
});
}
});