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

Version Path
active_scaffold_vho-4.0.0 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.2.14 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.2.13 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.2.12 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.2.11 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.2.10 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.2.9 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.2.8 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.2.7 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.2.6 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.2.5 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.2.4 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.2.3 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.2.2 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.2.1 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.2.0 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.1.8 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.1.6 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.1.5 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.1.4 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb