Hey,
I implemented ckeditor for the first time and i wanted to replace <p> with <br>
when clicking on enter.
Problem is, it wont work. In the editing area it still shows up as <p>.
other then that, it looked good, so i submitted the newsitem.
Once done i get this as a result:
http://www.voetbalbasis.nl/EKbasis/nieuws.php?id=9
But it looks okay in the editing window.
I used this:
<script type="text/javascript" src="ckeditor/ckeditor.js"> CKEDITOR.replace( 'bericht', { enterMode: CKEDITOR.ENTER_BR shiftEnterMode: CKEDITOR.ENTER_BR skin : 'office2003' language: 'nl' });</script>
Re: trying to use br instead of p
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
Re: trying to use br instead of p
It works great in the editing window.
Only when looking at the page it displays all <br/> times 2.
So one <br> in the editing view is <br/><br/> onthe final page.
This way there are a lot of gaps between the text.
Is there anyway i can solve this?
Thank you for your time so far!
Re: trying to use br instead of p
My php code used nl2br() to get info out of the database.
Eveything works excelent now.