Detect <p> as richtext paragraph

This commit is contained in:
Anton Khorev 2024-08-07 06:09:38 +03:00
parent aa8dd75e5e
commit e5279dacde
2 changed files with 6 additions and 1 deletions

View file

@ -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