Class: Markitup::Rails::PreviewController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/markitup/rails/preview_controller.rb

Overview

Public: Provide server-side preview of editor markup

Instance Method Summary collapse

Instance Method Details

#previewObject



8
9
10
# File 'app/controllers/markitup/rails/preview_controller.rb', line 8

def preview
  @content = Markitup::Rails.configuration.formatter.call(params[:data])
end