From 69d05c371029b7915cf2a87d6e552d9853244644 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Fri, 19 Mar 2010 10:53:30 -0400 Subject: [PATCH] - TinyMCE 3.3.1 --- program/js/tiny_mce/plugins/searchreplace/js/searchreplace.js | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/program/js/tiny_mce/plugins/searchreplace/js/searchreplace.js b/program/js/tiny_mce/plugins/searchreplace/js/searchreplace.js index a8585cc..c0a6243 100644 --- a/program/js/tiny_mce/plugins/searchreplace/js/searchreplace.js +++ b/program/js/tiny_mce/plugins/searchreplace/js/searchreplace.js @@ -75,6 +75,10 @@ r.select(); replace(); fo = 1; + + if (b) { + r.moveEnd("character", -(rs.length)); // Otherwise will loop forever + } } tinyMCEPopup.storeSelection(); -- Gitblit v1.9.1