planet 글쓰기 미리보기에 '...', '--' 문법 치환

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4947 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2008-11-20 11:24:47 +00:00
parent 8b7ad74dea
commit 37933667dc

View file

@ -176,6 +176,8 @@ function planetPreview(obj) {
var text = obj.value;
text = text.replace(/</ig,'&lt;');
text = text.replace(/>/ig,'&gt;');
text = text.replace(/\.\.\./g, '…');
text = text.replace(/--/g, '—');
$('preview_text').innerHTML = text.replace(/"([^"]*)":(mms|http|ftp|https)([^ ]+)/ig,'<a href="$2$3">$1</a>');
}else{
$Element('preview').addClass('off');