Hello, Thank you for your help. I have been trying for days to solve this and have run out of ideas..
PROBLEM:
When I query content that has been saved through the ckeditor to display it on a page it comes back wrapped in random <p> and <div> tags... I just want the content to show up with <br>s for line breaks and let the <p> and <div> tags be handled in the on page code..
for example, when I call the following code below I get the result under: I have already set the <p> values in my css file. I want all saved content to display in 1 <p> tag.
The current output of this query is:
PROBLEM:
When I query content that has been saved through the ckeditor to display it on a page it comes back wrapped in random <p> and <div> tags... I just want the content to show up with <br>s for line breaks and let the <p> and <div> tags be handled in the on page code..
for example, when I call the following code below I get the result under: I have already set the <p> values in my css file. I want all saved content to display in 1 <p> tag.
<p><cf_getSectionText sectionTitle="AboutUs"></p>
The current output of this query is:
<p> <p> </p> <div id="cke_pastebin"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. In laoreet ligula velit, non sagittis tellus. Aliquam pulvinar, metus vitae sagittis condimentum, nisl metus vestibulum nulla, nec sollicitudin metus nibh in velit. Nunc sed urna non velit sodales facilisis. Fusce hendrerit varius neque, vel pulvinar nibh porta suscipit. Fusce rhoncus pretium pretium. Fusce nisi dui, suscipit eget malesuada nec, venenatis eget nulla. Aliquam eget congue odio. Ut sed nisi a libero faucibus vehicula. Nulla a elit vitae nunc laoreet imperdiet. In at leo nisi. Quisque vestibulum gravida est ut vehicula. Praesent convallis feugiat risus eget fermentum. Proin quis justo ut augue scelerisque euismod ac vel erat. Pellentesque at tellus sit amet erat consectetur consequat. Ut bibendum ligula quis sapien porta a vestibulum velit aliquet.</div> <div id="cke_pastebin"> </div> <div id="cke_pastebin"> Donec faucibus bibendum dolor, eget ullamcorper nisl elementum eget. Morbi fermentum, diam hendrerit vestibulum cursus, lacus risus interdum magna, tristique convallis libero leo eu elit. Quisque pretium augue nec felis mollis a varius orci elementum. Aliquam erat volutpat. Phasellus ullamcorper velit quis orci sodales venenatis. Sed eget eleifend ligula. Quisque rhoncus, sapien nec volutpat pellentesque, felis magna iaculis urna, a iaculis augue orci vitae turpis. Sed fringilla pellentesque sapien, vel pellentesque sapien molestie quis. Mauris sit amet justo quis augue condimentum semper eget ut lacus. Nulla facilisi. Duis eleifend ullamcorper enim, id dictum massa vulputate eu.</div> </p>
Re: Controlling <p>, <br> and <div> tags in sa
I've read this article:
http://docs.cksource.com/CKEditor_3.x/D ... Formatting
But I don't know where to find or how to implement the javascript.
http://docs.cksource.com/ckeditor_api/s ... in.js.html
I have a
/admin/ckeditor/
/admin/filemanger/
/admin/header.cfm
/admin/default.cfm
Which pages do I need to add code to? and what is the code I need to add? Thank you.
Re: Controlling <p>, <br> and <div> tags in sa
As for how and where to create and add your JavaScript code, have a look at the various "Output..." samples that are available in the "_samples" forlder of your editor installation. See their source code for further tips.
As for your idea, I am not entirely sure I understand what you want to achieve, but have you tried playing with the autoParagraph and enterMode configuration values?
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!