Copied to clipboard

Flag this post as spam?

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


  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Dec 16, 2009 @ 17:45
    Ismail Mayat
    0

    p tag around image

    Hello,

    Using v4.0.2.1 and when i insert image using richt text editor i get p tags in the html around the image. When i edit raw html and remove the p tags around the image they come back.  Do i need to update something in tinymce config?

    Regards

    Ismail

  • Doug Clark 30 posts 52 karma points
    Jan 28, 2010 @ 01:11
    Doug Clark
    1

    I was having the same issue and saw nobody responded to your message. I believe I found the fix to removing the leading p tag in the richtext editor.

    Find the file tiny_mce_src.js (File path from umbraco install: Root > umbraco_client > tinymce3)

    Open the file in Notepad and do a text search for "forced_root_block". The first item that should come up is code under the Default editor config section.

    Change: forced_root_block : 'p',

    To: forced_root_block : '',

    Save and voila, leading p tag removed.

     

Please Sign in or register to post replies

Write your reply to:

Draft