RTE - text with line breaks rendering inside DIV instead of P
Hello,
I am facing some issues with copying text in RTE. Here are the scenarios:
When text is directly typed-in in editor, it'll be rendered inside <p>
When text (without line breaks) are copy-pasted in editor, it'll be rendered inside <p>
When text with line breaks are copy-pasted, it'll be rendered inside <div>
All my css styles are targeting <p>. I know, I can define styles for <div> as well to workaround this. However, when I tested the same scenarios in latest TinyMCE editor, I noticed that scenario #3 is rendered inside <p> instead of <div>.
This looks like more of configuration settings of TinyMCE in Umbraco. Does anyone know how can I force the editor to render contents inside <p> instead of <div>.
RTE - text with line breaks rendering inside DIV instead of P
Hello,
I am facing some issues with copying text in RTE. Here are the scenarios:
When text is directly typed-in in editor, it'll be rendered inside
<p>
When text (without line breaks) are copy-pasted in editor, it'll be rendered inside
<p>
<div>
All my css styles are targeting
<p>
. I know, I can define styles for<div>
as well to workaround this. However, when I tested the same scenarios in latest TinyMCE editor, I noticed that scenario #3 is rendered inside<p>
instead of<div>
.This looks like more of configuration settings of TinyMCE in Umbraco. Does anyone know how can I force the editor to render contents inside
<p>
instead of<div>
.Thanks.
This feels super weird. Why is this not documented that changing the appearance of the editor changes the output format..
is working on a reply...