﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
10355	Remove link-tag in Image-Dialog when Link is empty	Alex Schmid		"Currently when an Image nested within a link is edited and the link-url becomes empty the image afterwards still is wrapped in an empty <a> - Tag what maybe is not what should happen.

Reproduced on the demo-page, also on nightly, gives something like: 


{{{
<a href=""""><img alt=""Saturn V carrying Apollo 11"" class=""right"" src=""assets/sample.jpg"" /></a>
}}}


I changed this behaviour in plugins/image/dialogs/image.js, ca. Line 397ff by removing the linkElement:

{{{
	//Remove Link, Image exists.
	else if ( this.linkEditMode && !this.addLink ) {
		editor.getSelection().selectElement( this.linkElement );
		editor.insertElement( this.imageElement );
		this.linkElement.remove(true); // added
	}						
}}}"	Bug	confirmed	Normal		General	3.0		Webkit	
