Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Abilash Ashok 63 posts 418 karma points
    May 12, 2017 @ 06:25
    Abilash Ashok
    0

    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:

    1. When text is directly typed-in in editor, it'll be rendered inside <p>

    2. When text (without line breaks) are copy-pasted in editor, it'll be rendered inside <p>

    text-inside-p

    1. When text with line breaks are copy-pasted, it'll be rendered inside <div> text-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>.

    Thanks.

  • Rasmus Söderström 5 posts 75 karma points c-trib
    Oct 09, 2020 @ 14:32
    Rasmus Söderström
    0

    This feels super weird. Why is this not documented that changing the appearance of the editor changes the output format..

Please Sign in or register to post replies

Write your reply to:

Draft