﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
16658	Placeholder widget losses styling after switching to source mode.	kkrzton		"Custom styles can be added to style placeholders, e.g:

`{ name: 'Placeholder class', type: 'widget', widget: 'placeholder', attributes: { 'class': 'placeholder-class' } },`

More on styles - http://docs.ckeditor.com/#!/guide/dev_styles.

While styles can be applied on a placeholder widget properly, switching to source mode removes classes/styling so it cannot be restored while switching back to WYSIWYG mode.

== Expected result ==
The classes/styles are preserved while switching between Source/WYSIWYG mode.

== Actual result ==
The classes/styles are removed while switching to Source mode.

== Other details (browser, OS, CKEditor version, installed plugins) ==
The cause of the issue is the way placeholder widget is downcasted. It is downcasted to `[[placeholder_name]]` so there is no way to store additional attributes in the downcasted text/html.
"	Bug	confirmed	Normal		General				
