Sha256: c8904481c76667cb4d5016d3658b8ad385c7edfc9786bddae9ea2ed59ab9ccd0
Contents?: true
Size: 789 Bytes
Versions: 11
Compression:
Stored size: 789 Bytes
Contents
module ActiveScaffold module TinyMceBridge module ViewHelpers end module FormColumnHelpers def active_scaffold_input_text_editor(column, options) options[:class] = "#{options[:class]} as_mceEditor #{column.options[:class]}".strip html = [] html << send(override_input(:textarea), column, options) html.join "\n" end end module SearchColumnHelpers def self.included(base) base.class_eval { alias_method :active_scaffold_search_text_editor, :active_scaffold_search_text } end end end end ActionView::Base.class_eval do include ActiveScaffold::TinyMceBridge::FormColumnHelpers include ActiveScaffold::TinyMceBridge::SearchColumnHelpers include ActiveScaffold::TinyMceBridge::ViewHelpers end
Version data entries
11 entries across 11 versions & 1 rubygems