Lines Matching refs:link

6 CKEDITOR.plugins.add( 'link',

10 // Add the link and unlink buttons.
11 editor.addCommand( 'link', new CKEDITOR.dialogCommand( 'link' ) );
17 label : editor.lang.link.toolbar,
18 command : 'link'
30 CKEDITOR.dialog.add( 'link', this.path + 'dialogs/link.js' );
89 var element = CKEDITOR.plugins.link.getSelectedLink( editor ) || evt.data.element;
95 evt.data.dialog = ( element.getAttribute( 'name' ) && ( !element.getAttribute( 'href' ) || !element.getChildCount() ) ) ? 'anchor' : 'link';
98 else if ( CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, element ) )
124 link :
126 label : editor.lang.link.menu,
127 command : 'link',
128 group : 'link',
136 group : 'link',
150 var anchor = CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, element );
152 if ( !anchor && !( anchor = CKEDITOR.plugins.link.getSelectedLink( editor ) ) )
158 menu = { link : CKEDITOR.TRISTATE_OFF, unlink : CKEDITOR.TRISTATE_OFF };
191 if ( CKEDITOR.plugins.link.synAnchorSelector )
200 if ( isEmpty && CKEDITOR.plugins.link.emptyAnchorFix )
206 else if ( CKEDITOR.plugins.link.fakeAnchor && isEmpty )
215 if ( CKEDITOR.plugins.link.emptyAnchorFix && htmlFilter )
235 if ( CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, element ) ||
248 CKEDITOR.plugins.link =
251 * Get the surrounding link element of current selection.
253 * @example CKEDITOR.plugins.link.getSelectedLink( editor );
255 * The following selection will all return the link element.
258 * <a href="#">[link]</a>
259 * text[<a href="#">link]</a>
299 var link = editor.restoreRealElement( element );
300 if ( link.data( 'cke-saved-name' ) )
301 return link;
314 * the <a> was, so again we have to remove the link ourselves. (See #430)
351 if ( sel && ( anchor = sel.getSelectedElement() ) && ( CKEDITOR.plugins.link.fakeAnchor && !anchor.getChildCount() ? CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, anchor ) : anchor.is( 'a' ) ) )
355 if ( ( anchor = CKEDITOR.plugins.link.getSelectedLink( editor ) ) )