Module: TipTap::PlainTextRenderable
- Included in:
- Node
- Defined in:
- lib/tip_tap/plain_text_renderable.rb
Instance Method Summary collapse
-
#to_plain_text(separator: " ") ⇒ Object
Useful for searching.
Instance Method Details
#to_plain_text(separator: " ") ⇒ Object
Useful for searching
6 7 8 |
# File 'lib/tip_tap/plain_text_renderable.rb', line 6 def to_plain_text(separator: " ") content.map { |node| node.to_plain_text(separator: separator) }.join(separator) end |