close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

<p></p> automatic

Thread began 10/05/2010 7:08 am by gazerad204822 | Last modified 6/07/2011 8:46 am by Jason Byrnes | 2669 views | 10 replies |

gazerad204822

<p></p> automatic

How can I remove the <p></p> wich is automaticly added on each text ?

Sign in to reply to this post

Ray BorduinWebAssist

You can update the associated .js file in html_editor/custom/ and change the enter mode from:

FCKConfig.EnterMode = 'p;

to:

FCKConfig.EnterMode = 'br';
FCKConfig.ShiftEnterMode = 'p';

The editor will automatically add tags when the enter mode is p or div. You could also try changing it to "div" and it will add a div tag instead of a p tag and that might work better for you.

Sign in to reply to this post
Did this help? Tips are appreciated...

gazerad204822

Sorry about my english, but my problem is a little bit different...

The fact is that the FCKEDITOR add a <p> and </p> tag to everything I write...
I have to go into source, delete it and update... If I go back to the WUSIWYG editor, it add again the <p> and </p> tag

Sign in to reply to this post

Ray BorduinWebAssist

The above message will change that behavior. That is the issue I am referring to.

Sign in to reply to this post
Did this help? Tips are appreciated...

TheCore

Originally Said By: Ray Borduin
  You can update the associated .js file in html_editor/custom/ and change the enter mode from:

FCKConfig.EnterMode = 'p;

to:

FCKConfig.EnterMode = 'br';
FCKConfig.ShiftEnterMode = 'p';

The editor will automatically add tags when the enter mode is p or div. You could also try changing it to "div" and it will add a div tag instead of a p tag and that might work better for you.  



Just to tune in:
First: The html_editor/custom/ directory does not exist in PowerCMS. I think it is named HTMLEditor/custom/.
Second: There are only two .js files in that /custom/ folder. That is
1: contents_insert_ContentValue1.js
2: contents_update_ContentValue1.js
Further: Both of these files has the code-piece> FCKConfig.EnterMode = 'p'; at line 35. None of them has the code-piece> FCKConfig.ShiftEnterMode = 'p';
Changing just FCKConfig.EnterMode = 'p; to FCKConfig.EnterMode = 'br'; will not make the editor switch mode at all. It keeps putting its <p></p> like before and does not seam to have any effekt on the HTMLEditor at all. To get the <br> I have to use SHIFT-Return. I wish it was the other way around.

By the way, I've noticed that one level up there is a file named fckconfig.js. THIS file has both of the code-pieces described above. But if you switch them as adviced, the HTMLEditor starts putting <p></p> on both Return and SHIFT-Return.
Do I have a monday-version of PowerCMS or am I looking in the wrong directories, or is this Browser-dependent maybe? I use Safari - and Firefox - all the same.

Can anyone knock this problem to the floor?

Sign in to reply to this post

Ray BorduinWebAssist

I created a support incident to help look into this issue further. Please update that incident with a phone number and I'll call you and help you debug this problem.

Sign in to reply to this post
Did this help? Tips are appreciated...

info360637

Automatic <p> </p>

Has anyone nailed this problem yet - it's a real nuisance?
Sorry, I'm referring to the automatice <p> tag that CMS inserts without asking.

thanks
Jim

Sign in to reply to this post

info360389

Remove <p> tags on v2.11

Originally Said By: info360637
  Has anyone nailed this problem yet - it's a real nuisance?
Sorry, I'm referring to the automatice <p> tag that CMS inserts without asking.

thanks
Jim  



The above fix no longer works because v2.11 no longer has an HTMLeditor folder or any of the .js files mentioned. Could you please advise how to remove the automatic <p> tags with the new version?
Thanks
Andy

Sign in to reply to this post

Jason ByrnesWebAssist

see this post for details:
showpost.php?p=88856&postcount=8

Sign in to reply to this post

info360389

Great!

Works perfectly, many thanks.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...