SOLVED

Re: How to prevent the HTML editor from adding a p tag after I delete it from the code?

Go to solution
Dan_Stevens_
Level 10 - Champion Alumni

How to prevent the HTML editor from adding a p tag after I delete it from the code?

I have a block of text that's surrounded with a <span> tag.  The HTML editor keeps adding a <p> tag before the <span> tag and it's affecting the layout of the text.  How do I remove specific tags from the HTML and not have the editor add them back in?
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Justin_Cooperm2
Level 10

Re: How to prevent the HTML editor from adding a p tag after I delete it from the code?

I'm assuming this is an email?

Use a <div> instead, or just go to Email Actions > HTML Tools > Replace HTML but that will disconnect the email from the template.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Re: How to prevent the HTML editor from adding a p tag after I delete it from the code?

I have been having this issue too.
Michelle_Tizian
Level 10

Re: How to prevent the HTML editor from adding a p tag after I delete it from the code?

Ugh yes same here. 
Justin_Cooperm2
Level 10

Re: How to prevent the HTML editor from adding a p tag after I delete it from the code?

I'm assuming this is an email?

Use a <div> instead, or just go to Email Actions > HTML Tools > Replace HTML but that will disconnect the email from the template.
Josh_Hill13
Level 10 - Champion Alumni

Re: How to prevent the HTML editor from adding a p tag after I delete it from the code?

Try editing the HTML for that block, delete the P and replace with <BR> if you need a break.

Usually it is gone as long as you don't try to edit any further.
Dan_Stevens_
Level 10 - Champion Alumni

Re: How to prevent the HTML editor from adding a p tag after I delete it from the code?

It's a token (rich-text).  Placing <div> tags around the block solved it.  Thanks Justin.