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; }