diff --git a/vendor/assets/javascripts/redactor-rails/redactor.js b/vendor/assets/javascripts/redactor-rails/redactor.js index 32f6d8ce..e41afd0b 100644 --- a/vendor/assets/javascripts/redactor-rails/redactor.js +++ b/vendor/assets/javascripts/redactor-rails/redactor.js @@ -35,8 +35,6 @@ $.fn.redactor = function(options) { - window.debugRedactor.push(this); - var val = []; var args = Array.prototype.slice.call(arguments, 1); @@ -6289,6 +6287,10 @@ { var node2 = this.selection.getMarker(2); this.selection.setMarker(this.range, node2, false); + if (this.utils.browser('chrome')) + { + this.caret.set(node1, 0, node2, 0); + } } this.savedSel = this.$editor.html();