close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


annoying <p> tags adds exrra line spacing in Firefox

Thread began 2/21/2016 12:17 pm by randyrie405335 | Last modified 2/21/2016 3:25 pm by Ray Borduin | 227 views | 2 replies |


annoying <p> tags adds exrra line spacing in Firefox

CKEditor is adding <p> tags which causes Firefox to display extra line breaks between the text that is copied into the editor, wreaking the formatting. Is there anyway to permanently substitute these <p> tags with something like <span> tags so the extra lines won't be added? Can this be set using the Editor's format UI?

Adding "config.enterMode = CKEDITOR.ENTER_BR;" to the config.js just adds more line spaces which really wreaks the formatting.

As it is now, I have to manually go in and remove the <p> tags from the source - but if the user re-uploads another copy & paste, the problem re-occurs.

Sign in to reply to this post


you could just try removing them from the front end where the content is being displayed - this will then remove the <p> tags for that specific content for that page regardless of what is happening in the backend

Depending on whether you are using mysql or mysqli, you could do it this way:

if mysql

<?php echo(str_replace("<p>","</p>"), "", $row_RSname['ColumnName'])); ?>

if mysqli

<?php echo str_replace(array("<p>","</p>"), "",($RSname->getColumnVal("ColumnName"))); ?>

hope this helps


Sign in to reply to this post

Ray BorduinWebAssist

You can also try updating your version of CKEditor (which we have included in the latest version of databridge).

1) install the latest version of DataBridge
2) delete your local webassist/ckedtior folder
3) add a rich text editor field to a test page so that it recreates that folder
4) upload the latest version and test.

I've found the latest version adds less bloated code.

Sign in to reply to this post

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





Ease of use


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...