diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-11-23 09:38:02 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-11-23 09:38:02 +0100 |
commit | 7184b3a0e14c81e0e582052aff64f030f07699e6 (patch) | |
tree | 034886f06f952873aeda663cfc60ff8ba5df944b /program/js/tiny_mce/plugins/autolink/editor_plugin_src.js | |
parent | 184a11b4fb35dae46366adba580e7d99ac457781 (diff) |
- Update TinyMCE to version 3.5.10 (#1489442)
Diffstat (limited to 'program/js/tiny_mce/plugins/autolink/editor_plugin_src.js')
-rw-r--r-- | program/js/tiny_mce/plugins/autolink/editor_plugin_src.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/js/tiny_mce/plugins/autolink/editor_plugin_src.js b/program/js/tiny_mce/plugins/autolink/editor_plugin_src.js index c05fbbc09..5b61f7a20 100644 --- a/program/js/tiny_mce/plugins/autolink/editor_plugin_src.js +++ b/program/js/tiny_mce/plugins/autolink/editor_plugin_src.js @@ -107,8 +107,8 @@ do { // Move the selection one character backwards. - r.setStart(endContainer, end - 2); - r.setEnd(endContainer, end - 1); + r.setStart(endContainer, end >= 2 ? end - 2 : 0); + r.setEnd(endContainer, end >= 1 ? end - 1 : 0); end -= 1; // Loop until one of the following is found: a blank space, , delimeter, (end-2) >= 0 |