From 98891aae444303cbd1728a287edfced7d8eab025 Mon Sep 17 00:00:00 2001 From: joyqi Date: Sun, 10 Nov 2013 16:37:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=AF=AD=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/js/markdown.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/js/markdown.js b/admin/js/markdown.js index eb12c996..c36cadf6 100644 --- a/admin/js/markdown.js +++ b/admin/js/markdown.js @@ -4860,7 +4860,7 @@ else if (isImage) { var imagename = that.getString("imagename"); if (!!imagename) { - imagename = imagename.replace('_', '\\_'); + imagename = imagename.replace(/_/g, '\\_'); } chunk.selection = imagename || that.getString("imagedescription"); @@ -4868,7 +4868,7 @@ else else { var linkname = that.getString("linkname"); if (!!linkname) { - linkname = linkname.replace('_', '\\_'); + linkname = linkname.replace(/_/g, '\\_'); } chunk.selection = linkname || that.getString("linkdescription");