Merge branch 'MDL-51719-master' of git://github.com/danpoltawski/moodle
[moodle.git] / lib / editor / atto / plugins / rtl / yui / src / button / js / button.js
index 88bf7c0..724c21d 100644 (file)
@@ -41,7 +41,8 @@ Y.namespace('M.atto_rtl').Button = Y.Base.create('button', Y.M.editor_atto.Edito
             title: direction,
             buttonName: direction,
             callback: this._toggleRTL,
             title: direction,
             buttonName: direction,
             callback: this._toggleRTL,
-            callbackArgs: direction
+            callbackArgs: direction,
+            tags: '[dir=ltr]'
         });
 
         direction = 'rtl';
         });
 
         direction = 'rtl';
@@ -50,7 +51,8 @@ Y.namespace('M.atto_rtl').Button = Y.Base.create('button', Y.M.editor_atto.Edito
             title: direction,
             buttonName: direction,
             callback: this._toggleRTL,
             title: direction,
             buttonName: direction,
             callback: this._toggleRTL,
-            callbackArgs: direction
+            callbackArgs: direction,
+            tags: '[dir=rtl]'
         });
     },
 
         });
     },