Copied to clipboard

Flag this post as spam?

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


  • Nick 34 posts 127 karma points
    May 31, 2016 @ 16:00
    Nick
    0

    Rich Text Editor is inserting extra P tags in back end office

    Hi

    Is anyone else coming across RTE entering in empty P tags when there is an macro inserted into the same RTE

    Nick

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    May 31, 2016 @ 16:19
    Alex Skrypnyk
    0

    Hi Nick,

    It's common issue for Umbraco rte.

    Try to use RemoveFirstParagraph method from umbracolibrary:

    https://our.umbraco.org/wiki/reference/umbracolibrary/removefirstparagraphtag/

    Cheers,

    Alex

  • Nick 34 posts 127 karma points
    May 31, 2016 @ 16:23
    Nick
    0

    It doesnt always happen at the start of the text in the RTE. Sometimes it occurs in the middle of the text

  • Marcin Zajkowski 104 posts 572 karma points MVP 3x c-trib
    Jun 01, 2016 @ 01:52
    Marcin Zajkowski
    100

    Hi Nick,

    check this issue and comments and choose best (so far) solution for your problem: http://issues.umbraco.org/issue/U4-5334.

  • Nick 34 posts 127 karma points
    Jun 01, 2016 @ 08:36
    Nick
    0

    Ah I see, not quite what I'm hoping for but thanks!

  • Manish 373 posts 929 karma points
    Jun 01, 2016 @ 06:42
    Manish
    0

    Hi

    You can try following things

    1. @Umbraco.Field("yourDocumentPropertyAliasName", removeParagraphTags:true)
    2. Html.Raw(library.RemoveParagraphTags(Model.bodyText.ToString()))
    3. http://scottsdevblog.com/2011/08/get-rid-of-those-pesky-p-tags-in-umbracos-tinymce-editor/
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies