mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-29 16:19:58 +09:00
planet 글쓰기 미리보기에 '...', '--' 문법 치환
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4947 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
8b7ad74dea
commit
37933667dc
1 changed files with 2 additions and 0 deletions
|
|
@ -176,6 +176,8 @@ function planetPreview(obj) {
|
||||||
var text = obj.value;
|
var text = obj.value;
|
||||||
text = text.replace(/</ig,'<');
|
text = text.replace(/</ig,'<');
|
||||||
text = text.replace(/>/ig,'>');
|
text = text.replace(/>/ig,'>');
|
||||||
|
text = text.replace(/\.\.\./g, '…');
|
||||||
|
text = text.replace(/--/g, '—');
|
||||||
$('preview_text').innerHTML = text.replace(/"([^"]*)":(mms|http|ftp|https)([^ ]+)/ig,'<a href="$2$3">$1</a>');
|
$('preview_text').innerHTML = text.replace(/"([^"]*)":(mms|http|ftp|https)([^ ]+)/ig,'<a href="$2$3">$1</a>');
|
||||||
}else{
|
}else{
|
||||||
$Element('preview').addClass('off');
|
$Element('preview').addClass('off');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue