I have installed CKEDITOR and have been able to switch back and forth through some jquery from a plain text textarea to a wysiwyg textarea, which is CKEDITOR. So far all is well except when a user adds a blockquote or an ordered list or unordered list -- when they do, an empty paragraph is being added after the paragraph, after the paragraph, where the blockquote, ol, ul was inserted.
<p>this is sample text.</p>
<blockquote><p>this is text in the blockquote.</p></blockquote>
<p>this is more sample text.</p>
<p></p>
<p>this is more sample text.</p>
<p>this is more sample text.</p>
<p>this is more sample text.</p>
The empty paragraph is the markup above is what I would like to not be inserted. I have tried to parse it out with some PHP and javascript, but CKEDITOR keeps adding it back. I have all format rules (breakafteropen, breakafterclose, etc.) set to false.
This only happens when a blockquote, ul, or ol is added via CKEDITOR.
Any suggestions would be appreciated. Thanks!
<p>this is sample text.</p>
<blockquote><p>this is text in the blockquote.</p></blockquote>
<p>this is more sample text.</p>
<p></p>
<p>this is more sample text.</p>
<p>this is more sample text.</p>
<p>this is more sample text.</p>
The empty paragraph is the markup above is what I would like to not be inserted. I have tried to parse it out with some PHP and javascript, but CKEDITOR keeps adding it back. I have all format rules (breakafteropen, breakafterclose, etc.) set to false.
This only happens when a blockquote, ul, or ol is added via CKEDITOR.
Any suggestions would be appreciated. Thanks!
Re: CKEDITOR adds empty paragraph after paragraph
Could you describe steps required to reproduce it at http://ckeditor.com/demo ?
Re: CKEDITOR adds empty paragraph after paragraph
How about this article: http://docs.cksource.com/CKFinder_2.x/D ... ntegration ?
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!
Re: CKEDITOR adds empty paragraph after paragraph
I can confirm the problem, and I can reproduce it in the online demo.
1. Go http://ckeditor.com/demo
2. Select all an delete it
3. Click the table tool. Confirm the defaults.
4. Click "Source Code" (Or whatever it is called in english)
5. Problem: