web/wp-includes/js/tinymce/themes/advanced/js/link.js
changeset 204 09a1c134465b
parent 194 32102edaa81b
equal deleted inserted replaced
203:f507feede89a 204:09a1c134465b
    66 				}
    66 				}
    67 			});
    67 			});
    68 		} else {
    68 		} else {
    69 			ed.dom.setAttribs(e, {
    69 			ed.dom.setAttribs(e, {
    70 				href : href,
    70 				href : href,
    71 				title : f.linktitle.value,
    71 				title : f.linktitle.value
    72 				target : f.target_list ? getSelectValue(f, "target_list") : null,
       
    73 				'class' : f.class_list ? getSelectValue(f, "class_list") : null
       
    74 			});
    72 			});
       
    73 	
       
    74 			if (f.target_list) {
       
    75 				ed.dom.setAttrib(e, 'target', getSelectValue(f, "target_list"));
       
    76 			}
       
    77 
       
    78 			if (f.class_list) {
       
    79 				ed.dom.setAttrib(e, 'class', getSelectValue(f, "class_list"));
       
    80 			}
    75 		}
    81 		}
    76 
    82 
    77 		// Don't move caret if selection was image
    83 		// Don't move caret if selection was image
    78 		if (e.childNodes.length != 1 || e.firstChild.nodeName != 'IMG') {
    84 		if (e.childNodes.length != 1 || e.firstChild.nodeName != 'IMG') {
    79 			ed.focus();
    85 			ed.focus();