Sha256: 1019fd1d5e5f5ee26e5dcf3a40111a1d3068e4a7866283bf7a807321a81c58e5

Contents?: true

Size: 262 Bytes

Versions: 3

Compression:

Stored size: 262 Bytes

Contents

module PandaCms
  module EditorJs
    module Blocks
      class Paragraph < Base
        def render
          content = sanitize(data["text"])
          return "" if content.blank?
          html_safe("<p>#{content}</p>")
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
panda_cms-0.6.3 app/lib/panda_cms/editor_js/blocks/paragraph.rb
panda_cms-0.6.2 app/lib/panda_cms/editor_js/blocks/paragraph.rb
panda_cms-0.6.1 app/lib/panda_cms/editor_js/blocks/paragraph.rb