aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/assets
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2014-09-23 12:56:20 -0700
committerCesar G <prototech91@gmail.com>2014-09-23 12:56:20 -0700
commit80d5a1ec1f68d43c2cbc71ba8222d5dfdb7f29b2 (patch)
treec3cc99de8ee82306b0c4d885dec0cc3297d75293 /phpBB/assets
parentf2a98339e2707d7c237cc948c94586d6bb88b506 (diff)
downloadforums-80d5a1ec1f68d43c2cbc71ba8222d5dfdb7f29b2.tar
forums-80d5a1ec1f68d43c2cbc71ba8222d5dfdb7f29b2.tar.gz
forums-80d5a1ec1f68d43c2cbc71ba8222d5dfdb7f29b2.tar.bz2
forums-80d5a1ec1f68d43c2cbc71ba8222d5dfdb7f29b2.tar.xz
forums-80d5a1ec1f68d43c2cbc71ba8222d5dfdb7f29b2.zip
[ticket/13011] Do not apply bbcode to whole text when selecting first 2 chars.
PHPBB3-13011
Diffstat (limited to 'phpBB/assets')
-rw-r--r--phpBB/assets/javascript/editor.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/phpBB/assets/javascript/editor.js b/phpBB/assets/javascript/editor.js
index dfc7dab525..5fd4f7eae3 100644
--- a/phpBB/assets/javascript/editor.js
+++ b/phpBB/assets/javascript/editor.js
@@ -266,10 +266,6 @@ function mozWrap(txtarea, open, close) {
var selEnd = txtarea.selectionEnd;
var scrollTop = txtarea.scrollTop;
- if (selEnd === 1 || selEnd === 2) {
- selEnd = selLength;
- }
-
var s1 = (txtarea.value).substring(0,selStart);
var s2 = (txtarea.value).substring(selStart, selEnd);
var s3 = (txtarea.value).substring(selEnd, selLength);