Add preview functionality to rich text controls

This commit is contained in:
Tom Hughes 2012-03-03 18:40:44 +00:00
parent b6163f0fc2
commit 561f2f694a
15 changed files with 191 additions and 8 deletions

View file

@ -85,4 +85,8 @@ class SiteController < ApplicationController
def copyright
@locale = params[:copyright_locale] || I18n.locale
end
def preview
render :text => RichText.new(params[:format], params[:text]).to_html
end
end