Lines Matching refs:element

77 				 * for this in Firefox. So we must detect the state by element paths.
80 element = evt.data.path.lastElement && evt.data.path.lastElement.getAscendant( 'a', true );
81 …if ( element && element.getName() == 'a' && element.getAttribute( 'href' ) && element.getChildCoun…
89 var element = CKEDITOR.plugins.link.getSelectedLink( editor ) || evt.data.element;
91 if ( !element.isReadOnly() )
93 if ( element.is( 'a' ) )
95 …evt.data.dialog = ( element.getAttribute( 'name' ) && ( !element.getAttribute( 'href' ) || !elemen…
96 editor.getSelection().selectElement( element );
98 else if ( CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, element ) )
145 editor.contextMenu.addListener( function( element, selection )
147 if ( !element || element.isReadOnly() )
150 var anchor = CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, element );
183 a : function( element )
185 var attributes = element.attributes;
189 var isEmpty = !element.children.length;
207 return editor.createFakeParserElement( element, 'cke_anchor', 'anchor' );
221 a : function( element )
223 delete element.attributes.contenteditable;
231 pathFilters.push( function( element, name )
235 if ( CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, element ) ||
236 …( element.getAttribute( 'name' ) && ( !element.getAttribute( 'href' ) || !element.getChildCount() …
251 * Get the surrounding link element of current selection.
255 * The following selection will all return the link element.
295 tryRestoreFakeAnchor : function( editor, element )
297 …if ( element && element.data( 'cke-real-element-type' ) && element.data( 'cke-real-element-type' )…
299 var link = editor.restoreRealElement( element );
323 element;
328 element = rangeRoot.getAscendant( 'a', true );
329 if ( !element )
331 ranges[i].selectNodeContents( element );