<p></p> automatic
How can I remove the <p></p> wich is automaticly added on each text ?
How can I remove the <p></p> wich is automaticly added on each text ?
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.
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
The above message will change that behavior. That is the issue I am referring to.
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?
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.
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
see this post for details:
showpost.php?p=88856&postcount=8
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.