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

Version Path
active_scaffold_vho-3.0.31 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.0.30 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.0.29 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.0.28 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.0.27 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.0.26 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.0.25 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.0.24 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.1.0 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.0.23 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
active_scaffold_vho-3.0.22 lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb