<% for type in richtext_type %>
<%% hashradio = {:id => "<%= attribute.name %>-<%= type %>", :class => "select-richtext", 'data-editor' => 'markItUp<%= singular_table_name.capitalize %>_<%= attribute.name.downcase %>', 'data-spleditor' => '<%= singular_table_name %>_<%= attribute.name %>' } %>
<%% hashradio[:checked] = "checked" if @<%= singular_table_name %>.<%= attribute.name %>_typetext == "<%= type %>" %>
<% end %>
<%% rttype = @<%= singular_table_name %>.<%= attribute.name %>_typetext.to_s %>
<%% if not rttype.blank? then %>
<%% end %>
<%- elsif @beautiful_attributes.include?(attribute.name + ':wysiwyg') then -%>