Changeset 28232 for branches/3.9
- Timestamp:
- 05/01/2014 04:42:09 AM (11 years ago)
- Location:
- branches/3.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.9
-
branches/3.9/src/wp-includes/js/tinymce/plugins/wplink/plugin.js
r27934 r28232 16 16 17 17 function setState( button, node ) { 18 button.disabled( editor.selection.isCollapsed() && node.nodeName !== 'A' ); 19 button.active( node.nodeName === 'A' && ! node.name ); 18 var parent = editor.dom.getParent( node, 'a' ); 19 20 button.disabled( ( editor.selection.isCollapsed() && ! parent ) || ( parent && ! parent.href ) ); 21 button.active( parent && parent.href ); 20 22 } 21 23
Note: See TracChangeset
for help on using the changeset viewer.