var para_01 = {
	
	onAdd : function(widget, parent, editor) {
		
	},
	
	onLoad: function(widget, parent, editor) {
		widget.html(Base64.decode(widget[0].data.getField('text')));
	},
	
	onBeforeSave : function(widget, parent, editor) {
		widget[0].data.setField('text', Base64.encode(widget.html()));
	},
	
	onBeforeStylesMenu : function(widget, parent, editor, property) {
		switch(property) {
			case 'border':
			case 'background':
			case 'backgroundimage':
			case 'textshadow':
			case 'shadow':
			case 'opacity':
			case 'letterspacing':
			case 'linespacing':
			case 'padding':
				return true;
		}
		return false;
	},
	
	onResetStyles: function(widget, parent, editor) {
		
	},
	
	onAction : function(widget, parent, editor, action) {
		switch(action) {
			case 'edit':
				editor.showEditor(widget);
				break;
		}
	},
	
	onResize : function(widget, parent, editor) {
		// always show widget content for text widgets
		if(widget.height() > widget.parent().height()) {
			widget.parent().css('height', 'auto');
			addToLayoutStyle(widget.parent(), 'height', 'auto');
		}
	}
};

