a simple markdown editor
This commit is contained in:
@ -13,6 +13,7 @@ module Merged
|
||||
text = text.text unless text.is_a?(String)
|
||||
return 5 if text.blank?
|
||||
rows = (text.length / 50).to_i
|
||||
rows += text.count("\n")
|
||||
return 5 if rows < 5
|
||||
rows
|
||||
end
|
||||
|
Reference in New Issue
Block a user