JS>

<div class="wmywidgetname CMS_edit CMS1">Lorem Ispum Text</div>
</script>

<script>

	SCOPE('Widgets', function(ctrl) {

		ctrl.formShow = function(com) {
			com.reconfigure({ title: ctrl.get('form.id') ? '@(Edit widget)' : '@(New widget)' });
			SETTER('loading', 'hide', 1000);
		};

		ctrl.upload = function(el) {
			refresh_filebrowser(function(file) {
				SETTER('.widgets.form.body', 'insert', file);
			});
		};

		ctrl.formTemplate = function() {
			ctrl.set('form.body', $('#widgetstemplate').html(