#18316473 FF에서 이미지 파일 경로가 임의로 변경되던 버그 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6982 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2009-11-25 07:38:22 +00:00
parent f836b34f34
commit 784300b293

View file

@ -196,6 +196,11 @@ function editorGetContentTextarea_xe(editor_sequence) {
// 파이어폭스의 경우 의미없는 <br>이 컨텐트 마지막에 추가될 수 있다.
str = str.replace(/<br ?\/?>$/i, '');
// 이미지 경로를 수정한다. - 20091125
str = str.replace(/src\s?=\s?(["']?)(?:\.\.\/)+(files\/attach\/)/ig, function(m0,m1,m2){
return 'src='+(m1||'')+m2;
});
return str;
}