aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/styles/subSilver/template/editor.js6
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;
}