From 3735ecdb1665f2f6487a85004c9254305cc9e5cb Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sat, 17 Jun 2006 13:16:51 +0000 Subject: [PATCH] hopefully not making things worse... git-svn-id: file:///svn/phpbb/trunk@6087 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/styles/subSilver/template/editor.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/phpBB/styles/subSilver/template/editor.js b/phpBB/styles/subSilver/template/editor.js index 3fd5c6b8ad..e8f9b5a1c2 100644 --- a/phpBB/styles/subSilver/template/editor.js +++ b/phpBB/styles/subSilver/template/editor.js @@ -210,7 +210,11 @@ function addquote(post_id, username) if (theSelection == '') { - if (document.all) + if (divarea.innerHTML) + { + theSelection = divarea.innerHTML.replace(/
/ig, '\n'); + } + else if (document.all) { theSelection = divarea.innerText; }