Examples:
Simple
Custom buttons
Buttons manipulation
Custom settings
Custom functions

mark_it_up

Custom buttons example

Code used

show layout code

  
  <%
  
    MarkItUp.buttons = [
  
      { :name => 'Bold', :icon => 'bold', :key => 'B', :openWith => '(!(<strong>|!|<b>)!)', :closeWith => '(!(</strong>|!|</b>)!)' },
  
      { :name => 'Italic', :icon => 'italic', :key => 'I', :openWith => '(!(<em>|!|<i>)!)', :closeWith => '(!(<em>|!|<i>)!)' },
  
      { :name => 'Stroke through', :icon => 'stroke', :key => 'S', :openWith => '<del>', :closeWith => '</del>' }
  
    ]
  
  %>
  
  
  
  <% content_for :head do %>
  
    <%= mark_it_up "#miu_test" %>
  
  <% end %>
  
  
  
  <% form_tag do %>
  
    <%= text_area_tag "miu_test" %>
  
  <% end %>
  

For more info see http://github.com/cingel/mark_it_up