Rich Text Editor (WIP)
This commit is contained in:
@@ -73,8 +73,10 @@ class REST::StatusSerializer < ActiveModel::Serializer
|
||||
end
|
||||
|
||||
def rich_content
|
||||
Formatter.instance.format(object).strip
|
||||
# Formatter.instance.format(object, use_markdown: true).strip
|
||||
Formatter.instance.format(object, use_markdown: true).strip
|
||||
# raw_content = object.markdown
|
||||
# return '' if raw_content.blank?
|
||||
# raw_content.strip
|
||||
end
|
||||
|
||||
def url
|
||||
|
||||
Reference in New Issue
Block a user