﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
14905	Initiating widget can add blank space	Mark Wade		"== Steps to reproduce ==

1. Create a plugin which uses a widget - a simplified version of plugin I am experiencing this issue on is:


{{{
CKEDITOR.plugins.add( 'ipsquote', {
    requires: 'widget',
    icons: 'ipsquote',
    hidpi: true,
    allowedContent: 'blockquote',
    init: function( editor ) {
	    editor.widgets.add( 'ipsquote', {
			/* Basic Widget definition */
			button: ""Quote"",
	        template: ""<blockquote class='ipsQuote' data-ipsQuote><div class='ipsQuote_citation'>Quote</div><div class='ipsQuote_contents ipsClearfix'></div></blockquote>"",
	        editables: {
		        content: {
		            selector: '.ipsQuote_contents'
		        }
		    },
		} );
} );
}}}


2. Insert content into the editor using insertElement() which mates the format of the widget created and includes code in <pre> tags. Then initiate the widget on that element. A simplified version of plugin I am experiencing this issue on is:


{{{
					var quote = ""<blockquote class='ipsQuote' data-ipsQuote><div class='ipsQuote_citation'>Quote</div><div class='ipsQuote_contents ipsClearfix'><pre class='ipsCode'>Some code</pre></div></blockquote>"";
					var element = CKEDITOR.dom.element.createFromHtml( quote );
					instance.insertElement( element );
					instance.widgets.initOn( element, 'ipsquote' );
}}}


== Expected result ==

The provided content is inserted into the editor with the contents of the <pre> tags unmodified

== Actual result ==

A blank line is inserted at the beginning of the <pre> tag

== Other details (browser, OS, CKEditor version, installed plugins) =="	Bug	confirmed	Normal		General	4.3			
