Sha256: 6b64e8b4095f99722912d4cc6af1348b5c4ada72d1970e2b9f63272265a9c290

Contents?: true

Size: 376 Bytes

Versions: 10

Compression:

Stored size: 376 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 table].freeze
    INLINE_NON_STYLE_ELEMENTS = %w[a abbr cite font img output q samp span thead tbody td time var].freeze
    BLOCK_CONTENT_ELEMENTS = %w[p dl h1 h2 h3 h4 h5 h6].freeze
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
draftjs_html-0.24.0 lib/draftjs_html/from_html/elements.rb
draftjs_html-0.23.0 lib/draftjs_html/from_html/elements.rb
draftjs_html-0.22.0 lib/draftjs_html/from_html/elements.rb
draftjs_html-0.21.0 lib/draftjs_html/from_html/elements.rb
draftjs_html-0.20.0 lib/draftjs_html/from_html/elements.rb
draftjs_html-0.19.0 lib/draftjs_html/from_html/elements.rb
draftjs_html-0.18.0 lib/draftjs_html/from_html/elements.rb
draftjs_html-0.17.0 lib/draftjs_html/from_html/elements.rb
draftjs_html-0.16.0 lib/draftjs_html/from_html/elements.rb
draftjs_html-0.15.0 lib/draftjs_html/from_html/elements.rb