Sha256: 7b3cadaf461a2e8054a4bdab390bc9a667a26974af6fcbd2216665526489fad8

Contents?: true

Size: 434 Bytes

Versions: 10

Compression:

Stored size: 434 Bytes

Contents

module DraftjsHtml
  class FromHtml < Nokogiri::XML::SAX::Document
    INLINE_STYLE_ELEMENTS = HtmlDefaults::HTML_STYLE_TAGS_TO_STYLE.keys.freeze
    LIST_PARENT_ELEMENTS = %w[ol ul].freeze
    INLINE_NON_STYLE_ELEMENTS = %w[a abbr cite font img output q samp span table thead tbody td time var].freeze
    BLOCK_CONTENT_ELEMENTS = %w[p dl h1 h2 h3 h4 h5 h6].freeze
    FLUSH_BOUNDARIES = %w[OPENING div ol ul li tr].freeze
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
draftjs_html-0.34.0 lib/draftjs_html/from_html/elements.rb
draftjs_html-0.33.0 lib/draftjs_html/from_html/elements.rb
draftjs_html-0.32.0 lib/draftjs_html/from_html/elements.rb
draftjs_html-0.31.0 lib/draftjs_html/from_html/elements.rb
draftjs_html-0.30.0 lib/draftjs_html/from_html/elements.rb
draftjs_html-0.29.0 lib/draftjs_html/from_html/elements.rb
draftjs_html-0.28.0 lib/draftjs_html/from_html/elements.rb
draftjs_html-0.27.0 lib/draftjs_html/from_html/elements.rb
draftjs_html-0.26.0 lib/draftjs_html/from_html/elements.rb
draftjs_html-0.25.0 lib/draftjs_html/from_html/elements.rb