Add preview functionality to rich text controls
This commit is contained in:
parent
b6163f0fc2
commit
561f2f694a
15 changed files with 191 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue