diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-06-17 13:16:51 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-06-17 13:16:51 +0000 |
commit | 3735ecdb1665f2f6487a85004c9254305cc9e5cb (patch) | |
tree | 1b8e7f7f4f2b1ec5a1e1434028e342a2f11c2a7f | |
parent | add20b4a923932b2a419921e42fe7a17e73757f2 (diff) | |
download | forums-3735ecdb1665f2f6487a85004c9254305cc9e5cb.tar forums-3735ecdb1665f2f6487a85004c9254305cc9e5cb.tar.gz forums-3735ecdb1665f2f6487a85004c9254305cc9e5cb.tar.bz2 forums-3735ecdb1665f2f6487a85004c9254305cc9e5cb.tar.xz forums-3735ecdb1665f2f6487a85004c9254305cc9e5cb.zip |
hopefully not making things worse...
git-svn-id: file:///svn/phpbb/trunk@6087 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/styles/subSilver/template/editor.js | 6 |
1 files changed, 5 insertions, 1 deletions
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(/<br>/ig, '\n'); + } + else if (document.all) { theSelection = divarea.innerText; } |