Detect <p> as richtext paragraph
This commit is contained in:
parent
aa8dd75e5e
commit
e5279dacde
2 changed files with 6 additions and 1 deletions
|
@ -158,7 +158,7 @@ module RichText
|
|||
end
|
||||
|
||||
def paragraph?(element)
|
||||
element.type == :p
|
||||
element.type == :p || (element.type == :html_element && element.value == "p")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue