You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What I'm trying to achieve is to keep my paragraph tags inside a list item.
If I add this markup into the HTML source mode, the <p> will automatically disappear when switching back & forth to this mode
Input
<ul>
<li>
<p>
test 1
</p>
</li>
</ul>
after switching back & forth HTML source mode, output:
<ul>
<li>
test 1
</li>
</ul>
What confuses me more is that when using two <p> inside the editor, the behavior is different:
input :
<ul>
<li>
<p>
test 1
</p>
<p>
test 2
</p>
</li>
</ul>
output :
<ul>
<li>
<p>
test 1
</p>
<p>
test 2
</p>
</li>
</ul>
I am using default Drupal implementation but I was also able to reproduce on the feature-rich editor.
I can't find any configuration setting for this particular setup, nor any issue related.. Am I missing something, or is there anything I can do to prevent this behavior ?
Thanks in advance,
The text was updated successfully, but these errors were encountered:
Why is it even removed in the first place? Having a P tag inside a LI tag is not considered invalid HTML, so I think it should be kept if people insert it.
📝 How to keep a lonely
<p>
element in a<li>
tagHello everyone,
What I'm trying to achieve is to keep my paragraph tags inside a list item.
If I add this markup into the HTML source mode, the
<p>
will automatically disappear when switching back & forth to this modeInput
after switching back & forth HTML source mode, output:
What confuses me more is that when using two
<p>
inside the editor, the behavior is different:input :
output :
I am using default Drupal implementation but I was also able to reproduce on the feature-rich editor.
I can't find any configuration setting for this particular setup, nor any issue related.. Am I missing something, or is there anything I can do to prevent this behavior ?
Thanks in advance,
The text was updated successfully, but these errors were encountered: