close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

annoying <p> tags adds exrra line spacing in Firefox

Thread begun 2/21/2016 9:17 am by randyrie405335 | Last modified 2/21/2016 12:25 pm by Ray Borduin | 766 views | 2 replies |

randyrie405335

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

Jamie

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

Jamie

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

Just:
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
Did this help? Tips are appreciated...

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