Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
ckeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vanilla ckeditor-3.5.3
[ckeditor.git]
/
_source
/
plugins
/
link
/
plugin.js
diff --git
a/_source/plugins/link/plugin.js
b/_source/plugins/link/plugin.js
index
f0278ec
..
e5b7044
100644
(file)
--- a/
_source/plugins/link/plugin.js
+++ b/
_source/plugins/link/plugin.js
@@
-1,5
+1,5
@@
/*
\r
/*
\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
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
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
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
'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
'background-repeat: no-repeat;' +
\r
'border: 1px solid #a9a9a9;' +
\r
- 'padding-left: 18px;' +
\r
+ 'padding-' + side + ': 18px;' +
\r
'}'
\r
);
\r
\r
'}'
\r
);
\r
\r
@@
-73,7
+74,7
@@
CKEDITOR.plugins.add( 'link',
{
\r
if ( element.is( 'a' ) )
\r
evt.data.dialog = ( element.getAttribute( 'name' ) && !element.getAttribute( 'href' ) ) ? 'anchor' : 'link';
\r
{
\r
if ( element.is( 'a' ) )
\r
evt.data.dialog = ( element.getAttribute( 'name' ) && !element.getAttribute( 'href' ) ) ? 'anchor' : 'link';
\r
- else if ( element.is( 'img' ) && element.getAttribute( '_cke_real_element_type' ) == 'anchor' )
\r
+ else if ( element.is( 'img' ) && element.data( 'cke-real-element-type' ) == 'anchor' )
\r
evt.data.dialog = 'anchor';
\r
}
\r
});
\r
evt.data.dialog = 'anchor';
\r
}
\r
});
\r
@@
-116,7
+117,7
@@
CKEDITOR.plugins.add( 'link',
if ( !element || element.isReadOnly() )
\r
return null;
\r
\r
if ( !element || element.isReadOnly() )
\r
return null;
\r
\r
- var isAnchor = ( element.is( 'img' ) && element.getAttribute( '_cke_real_element_type' ) == 'anchor' );
\r
+ var isAnchor = ( element.is( 'img' ) && element.data( 'cke-real-element-type' ) == 'anchor' );
\r
\r
if ( !isAnchor )
\r
{
\r
\r
if ( !isAnchor )
\r
{
\r