=semantic_form_for( [:portlet, @text_content], :remote => true) do |f|
	
	%p{:style => "text-align:center;"}= f.submit "Sauvegarder", :class => "btn btn-primary"
	
	=f.text_area :content, :style => "width:98%;height:600px;", :class => "redactor_content"

	#toolbar-text
	
	
	-if TextContent::STYLES.size > 0
		Style :
		= f.select :style, TextContent::STYLES


	
	

	:javascript
		
		$('.redactor_content').redactor({
			toolbarExternal: '#toolbar-text',
			
			lang: 'fr',
			buttons : ['html', '|', 'formatting', '|', 'bold', 'italic', 'deleted','underline','|', 'alignleft', 'aligncenter', 'alignright', 'justify', '|', 'unorderedlist', 'orderedlist', 'outdent', 'indent', '|', 'table', 'link', '|','fontcolor', 'backcolor','|', 'horizontalrule']
			
		
		});
	
		



		
	
	
