aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/subSilver/template/editor.js
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/styles/subSilver/template/editor.js')
-rw-r--r--phpBB/styles/subSilver/template/editor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/styles/subSilver/template/editor.js b/phpBB/styles/subSilver/template/editor.js
index 5ce917d1b2..dcf9d2c2bb 100644
--- a/phpBB/styles/subSilver/template/editor.js
+++ b/phpBB/styles/subSilver/template/editor.js
@@ -134,7 +134,7 @@ function insert_text(text, spaces, popup)
{
text = ' ' + text + ' ';
}
- if (textarea.createTextRange && !isNaN(textarea.caretPos))
+ if (textarea.createTextRange && textarea.caretPos)
{
var caret_pos = textarea.caretPos;
caret_pos.text = caret_pos.text.charAt(caret_pos.text.length - 1) == ' ' ? caret_pos.text + text + ' ' : caret_pos.text + text;