editor auto adds <p> paragraph tag after save article or mod

This forum is for reporting bugs in Joomla!. Please don't report problems with extensions in here.
Forum rules
Forum Rules
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
mali_01
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Feb 11, 2010 2:07 pm

editor auto adds <p> paragraph tag after save article or mod

Post by mali_01 » Thu Feb 11, 2010 2:28 pm

Hi Guys

I'm new in Joomla, I experiencing a prob with editing article or custom module. After save the article or module editor auto adds <p> HTML Paragraph tag...

Thanking you in advance!

Cheers,
MALI :(

trivial2k
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Mar 26, 2010 6:22 pm

Re: editor auto adds <p> paragraph tag after save article or mod

Post by trivial2k » Fri Mar 26, 2010 6:26 pm

Are you asking how to remove the <p> </p> tag in the article editor?
If yes, here is the solution.

In the administrator, go to Extentsions -> Plugin Manager -> Editor-TinyMCE
In "Parameters" panel, find "New Lines"
Change it to "BR Elements"

User avatar
mcsmom
Joomla! Exemplar
Joomla! Exemplar
Posts: 7985
Joined: Thu Aug 18, 2005 8:43 pm
Location: New York
Contact:

Re: editor auto adds <p> paragraph tag after save article or mod

Post by mcsmom » Sun Mar 28, 2010 1:18 am

Make sure not to hit enter at the end of your last paragraph.
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.

thewherewithal
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun May 30, 2010 3:58 pm

Re: editor auto adds <p> paragraph tag after save article or

Post by thewherewithal » Sun May 30, 2010 4:03 pm

I've encountered the same (frustrating) problem. I'm using Joomla 1.5.17 with the rhuk_milkyway template. Everytime I save my article, it add three lines of <p> </p> and the article is consequently full of long spaces. I've tried the solution suggested by trivial2k but it didn't work for me. Any ideas?

mulatto401
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Nov 06, 2010 4:27 pm

Re: editor auto adds <p> paragraph tag after save article or

Post by mulatto401 » Sat Nov 06, 2010 4:34 pm

I found a solution to this, basically you want to add another parameter to the Editor - TinyMCE plugin.

You want to find the tinymce.xml file in "plugins/editors" and find

Code: Select all

<param name="newlines" type="list" default="0" label="Newlines" description="Newlines will be made into the selected option">
			<option value="1">BR Elements</option>
			<option value="0">P Elements</option>
		</param>
Your going to add this line under the last <option> tag

Code: Select all

<option value="-1">Nothing</option>
Basically this just makes another option in the menu for newlines and obviously we want it to not put anything so we do -1 as the value.

Works for me :D

bikemrh
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Dec 08, 2010 8:31 pm

Re: editor auto adds <p> paragraph tag after save article or

Post by bikemrh » Thu Feb 10, 2011 2:06 pm

I was able to figure out my </p> issue.

thanks

Junket
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Jun 29, 2011 10:16 pm

Re: editor auto adds <p> paragraph tag after save article or

Post by Junket » Wed Jun 29, 2011 10:24 pm

If Joomla is adding a paragraph tag or quotation / quote, or stripping any code from your articles, the problem is probably not the editor that you are using. The problem is Joomla's built in filtering that is intended to prevent users from entering malicious code into articles. In order to disable this filtering, do this:
in Joomla back end, click through: article manager...options (on menu bar)...text filters (on tab bar) ...(scroll down to) superusers and select "no filtering"

syberjj
Joomla! Apprentice
Joomla! Apprentice
Posts: 27
Joined: Thu May 07, 2009 6:20 pm

Re: editor auto adds <p> paragraph tag after save article or

Post by syberjj » Wed Sep 21, 2011 4:53 am

trivial2k wrote:Are you asking how to remove the <p> </p> tag in the article editor?
If yes, here is the solution.

In the administrator, go to Extentsions -> Plugin Manager -> Editor-TinyMCE
In "Parameters" panel, find "New Lines"
Change it to "BR Elements"
thanks!

PcPoizn
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Nov 16, 2011 1:23 pm

Re: editor auto adds <p> paragraph tag after save article or

Post by PcPoizn » Wed Nov 16, 2011 1:31 pm

:) the one stated by junket works

If Joomla is adding a paragraph tag or quotation / quote, or stripping any code from your articles, the problem is probably not the editor that you are using. The problem is Joomla's built in filtering that is intended to prevent users from entering malicious code into articles. In order to disable this filtering, do this:
in Joomla back end, click through: article manager...options (on menu bar)...text filters (on tab bar) ...(scroll down to) superusers and select "no filtering"

Roundhouse
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Mon Apr 16, 2012 4:12 pm

Re: editor auto adds <p> paragraph tag after save article or

Post by Roundhouse » Mon Apr 16, 2012 4:39 pm

PcPoizn wrote::) the one stated by junket works

If Joomla is adding a paragraph tag or quotation / quote, or stripping any code from your articles, the problem is probably not the editor that you are using. The problem is Joomla's built in filtering that is intended to prevent users from entering malicious code into articles. In order to disable this filtering, do this:
in Joomla back end, click through: article manager...options (on menu bar free ipad 3)...text filters (on tab bar) ...(scroll down to) superusers and select "no filtering"
Thanks, by doing this though, would we be able to add any type of html code into the post/article and have it displays properly on the front end page?
I ask because by default, Wordpress does not allow us to use PHP code into the html section of creating a page/post.

Thanks

Roundhouse
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Mon Apr 16, 2012 4:12 pm

Re: editor auto adds <p> paragraph tag after save article or

Post by Roundhouse » Fri May 11, 2012 3:59 pm

Roundhouse wrote:
PcPoizn wrote::) the one stated by junket works

If Joomla is adding a paragraph tag or quotation / quote, or stripping any code from your articles, the problem is probably not the editor that you are using. The problem is Joomla's built in filtering that is intended to prevent users from entering malicious code into articles. In order to disable this filtering, do this:
in Joomla back end, click through: article manager...options (on menu bar victorious episodes)...text filters (on tab bar) ...(scroll down to) superusers and select "no filtering"
Thanks, by doing this though, would we be able to add any type of html code into the post/article and have it displays properly on the front end page?
I ask because by default, Wordpress does not allow us to use PHP code into the html section of creating a page/post.

Thanks
EDIT: Update, was able to figure it out. Thanks!

User avatar
sounds
Joomla! Explorer
Joomla! Explorer
Posts: 357
Joined: Tue Jun 12, 2007 7:20 am
Location: Republic of Ireland

Re: editor auto adds <p> paragraph tag after save article or

Post by sounds » Mon Jun 04, 2012 2:40 pm

Joomla 2.5.. Global Configuration – Text Filters :laugh:
Big party when I reach 10,000 posts.

Thank you :pop:

adrianqx
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Fri Mar 23, 2007 11:49 am

Re: editor auto adds <p> paragraph tag after save article or

Post by adrianqx » Mon Dec 03, 2012 6:07 pm

Changing the new line element from <p> to <br> in the tinymce plugin page solved this annoying issue, just remember to backspace existing <p> tags


Locked

Return to “Joomla! 1.5 Bug Reporting”