Sha256: 7ee33f6c0ef016cbbea9c8b812e6c0615276d14dea3b0c3c1ea73df27ab5688b
Contents?: true
Size: 300 Bytes
Versions: 3
Compression:
Stored size: 300 Bytes
Contents
module Panda module CMS 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 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
panda-cms-0.7.3 | lib/panda/cms/editor_js/blocks/paragraph.rb |
panda-cms-0.7.2 | lib/panda/cms/editor_js/blocks/paragraph.rb |
panda-cms-0.7.0 | lib/panda/cms/editor_js/blocks/paragraph.rb |