JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.5.1
[ckeditor.git] / _source / plugins / link / plugin.js
index ac62901..e5b7044 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
 For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
@@ -30,6 +30,7 @@ CKEDITOR.plugins.add( 'link',
                CKEDITOR.dialog.add( 'anchor', this.path + 'dialogs/anchor.js' );\r
 \r
                // Add the CSS styles for anchor placeholders.\r
+               var side = editor.lang.dir == 'rtl' ? 'right' : 'left';\r
                editor.addCss(\r
                        'img.cke_anchor' +\r
                        '{' +\r
@@ -43,10 +44,10 @@ CKEDITOR.plugins.add( 'link',
                        'a.cke_anchor' +\r
                        '{' +\r
                                'background-image: url(' + CKEDITOR.getUrl( this.path + 'images/anchor.gif' ) + ');' +\r
-                               'background-position: 0 center;' +\r
+                               'background-position: ' + side + ' center;' +\r
                                'background-repeat: no-repeat;' +\r
                                'border: 1px solid #a9a9a9;' +\r
-                               'padding-left: 18px;' +\r
+                               'padding-' + side + ': 18px;' +\r
                        '}'\r
                        );\r
 \r