Sha256: a759341879b6a7f1a7a6c22b69b6b6a843b425afb5a920f777866dd38770b9e6

Contents?: true

Size: 271 Bytes

Versions: 7

Compression:

Stored size: 271 Bytes

Contents

# encoding: UTF-8

module Spontaneous::FieldTypes
  class LongStringField < Field
    include Spontaneous::Plugins::Field::EditorClass

    def generate_html(value)
      escape_html(value).gsub(/[\r\n]+/, "<br />")
    end

    self.register
  end # LongStringField
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spontaneous-0.2.0.alpha7 lib/spontaneous/field_types/long_string_field.rb
spontaneous-0.2.0.alpha6 lib/spontaneous/field_types/long_string_field.rb
spontaneous-0.2.0.alpha5 lib/spontaneous/field_types/long_string_field.rb
spontaneous-0.2.0.alpha4 lib/spontaneous/field_types/long_string_field.rb
spontaneous-0.2.0.alpha3 lib/spontaneous/field_types/long_string_field.rb
spontaneous-0.2.0.alpha2 lib/spontaneous/field_types/long_string_field.rb
spontaneous-0.2.0.alpha1 lib/spontaneous/field_types/long_string_field.rb