Sha256: ae69ed9260c3bcde9ddca1b521ca6fb41903c6e2e0278e1af86567984e0e387b
Contents?: true
Size: 800 Bytes
Versions: 23
Compression:
Stored size: 800 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").html_safe 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
23 entries across 23 versions & 1 rubygems