diff --git a/app/assets/stylesheets/common/base/rtl.scss b/app/assets/stylesheets/common/base/rtl.scss index ad7e5c4af7a..1af800b288c 100644 --- a/app/assets/stylesheets/common/base/rtl.scss +++ b/app/assets/stylesheets/common/base/rtl.scss @@ -56,3 +56,9 @@ float: left !important; .rtl .dashboard-right { float: left !important; } + +// Right and left will be flipped by the r2 gem +.rtl #caret-clone[style] { + right: auto !important; + left: -7000px !important; +} diff --git a/vendor/assets/javascripts/caret_position.js b/vendor/assets/javascripts/caret_position.js index e3f94b3597d..beadddffdbd 100644 --- a/vendor/assets/javascripts/caret_position.js +++ b/vendor/assets/javascripts/caret_position.js @@ -45,7 +45,7 @@ $.fn.caretPosition = function(options) { }; styles = getStyles(textarea[0]); - clone = $("

").appendTo("body"); + clone = $("

").appendTo("body"); p = clone.find("p"); clone.width(textarea.width()); clone.height(textarea.height());