/*\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
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
'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