Copied to clipboard

Flag this post as spam?

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


  • Navneet Kumar Jain 9 posts 89 karma points
    Feb 09, 2021 @ 13:49
    Navneet Kumar Jain
    0

    Hi All,

    I need a quick help related to RTE functionality. When I am adding any html tag it is converted to below example as I don't want to have full HTML tag with head and body, my only requirement is to have the same tag which I added into RTE.

      <!DOCTYPE html><html><head></head><body><p>text check</p></body></html>
    

    Really appreciate, please help me how can I prevent to not to convert the "text check" under body tag.

  • Huw Reddick 380 posts 1062 karma points
    Feb 14, 2021 @ 13:19
    Huw Reddick
    0

    Not sure exactly what you are trying to explain. The RTE does not insert doctype or html and body tags.

    What exactly are you trying to add to the RTE? By default text will have a paragraph tag wrapped around, is that what you mean?

  • Luke 10 posts 91 karma points
    Mar 02, 2021 @ 17:27
    Luke
    0

    Have you added any plugins to the tinyMceConfig.config?

    (I have experienced the same issue.)

  • Huw Reddick 380 posts 1062 karma points
    Mar 02, 2021 @ 17:29
  • Navneet Kumar Jain 9 posts 89 karma points
    Mar 03, 2021 @ 12:05
    Navneet Kumar Jain
    0

    Thanks Huw, your shared link fix the issue.

  • Navneet Kumar Jain 9 posts 89 karma points
    Mar 03, 2021 @ 11:43
    Navneet Kumar Jain
    0

    Hi,

    The issue still same for me just I use below code to render the HTML

    @Html.Raw()

Please Sign in or register to post replies

Write your reply to:

Draft