includes/clientside/tinymce/plugins/advlink/js/advlink.js
changeset 459 31c23016ab62
parent 395 fa4c5ecb7c9a
child 476 f26a69c40431
equal deleted inserted replaced
458:c433348f3628 459:31c23016ab62
   410 
   410 
   411 	tinyMCEPopup.execCommand("mceBeginUndoLevel");
   411 	tinyMCEPopup.execCommand("mceBeginUndoLevel");
   412 
   412 
   413 	// Create new anchor elements
   413 	// Create new anchor elements
   414 	if (elm == null) {
   414 	if (elm == null) {
   415 		tinyMCEPopup.execCommand("CreateLink", false, "#mce_temp_url#");
   415 		tinyMCEPopup.execCommand("CreateLink", false, "#mce_temp_url#", {skip_undo : 1});
   416 
   416 
   417 		elementArray = tinymce.grep(inst.dom.select("a"), function(n) {return inst.dom.getAttrib(n, 'href') == '#mce_temp_url#';});
   417 		elementArray = tinymce.grep(inst.dom.select("a"), function(n) {return inst.dom.getAttrib(n, 'href') == '#mce_temp_url#';});
   418 		for (i=0; i<elementArray.length; i++) {
   418 		for (i=0; i<elementArray.length; i++) {
   419 			elm = elementArray[i];
   419 			elm = elementArray[i];
   420 
   420