From 4b370d82139c43a93f004d0b77e101158e244f1a Mon Sep 17 00:00:00 2001 From: taggon Date: Mon, 29 Nov 2010 09:16:20 +0000 Subject: [PATCH] =?UTF-8?q?#19294477=20XEED=EC=9D=98=20=EB=B9=84=ED=91=9C?= =?UTF-8?q?=EC=A4=80=20XHTML=20=EC=82=AC=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7937 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/editor/skins/xeed/js/xe_interface.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/editor/skins/xeed/js/xe_interface.js b/modules/editor/skins/xeed/js/xe_interface.js index 88d1d768d..279820d82 100644 --- a/modules/editor/skins/xeed/js/xe_interface.js +++ b/modules/editor/skins/xeed/js/xe_interface.js @@ -49,10 +49,11 @@ function editorStart_xe(editor_seq, primary_key, content_key, editor_height, col // standard filters function plz_standard(code) { - var single_tags = 'img input'.split(' '); + var single_tags = 'area br col hr img input param'.split(' '), replaces = {b:'strong',i:'em'}; code = code.replace(/<(\/)?([A-Za-z0-9:]+)(.*?)(\s*\/?)>/g, function(m0,is_close,tag,attrs,closing){ tag = tag.toLowerCase(); + if (replaces[tag]) tag = replaces[tag]; attrs = attrs.replace(/([\w:-]\s*)=(?:([^"' \t\r\n]+)|\s*("[^"]*")|\s*('[^']*'))/g, function(m0,name,m2,m3,m4){ var val = m2||m3||m4;