Hi folks,
I am new and demo-ing CKEditor. To test the editor, I typed in some simple text. When I looked at the source code it output, the HTML looks a little strange to me with extra line returns and spacing. The same source code is generated in the demo.
Is this correct for how CKEditor generates all HTML code, or is there something special I can do to the configuration file to get the code to be a little "tighter" with fewer line returns and spacing? My implementation is running on a *Nix server under Apache2 with PHP.
Image #1 is using the editor. Image #2 is when I view the source code.
Thanks for the help.
I am new and demo-ing CKEditor. To test the editor, I typed in some simple text. When I looked at the source code it output, the HTML looks a little strange to me with extra line returns and spacing. The same source code is generated in the demo.
Is this correct for how CKEditor generates all HTML code, or is there something special I can do to the configuration file to get the code to be a little "tighter" with fewer line returns and spacing? My implementation is running on a *Nix server under Apache2 with PHP.
Image #1 is using the editor. Image #2 is when I view the source code.
Thanks for the help.
Re: Is this the standard HTML output for CKEditor?
Hi cryogen,
Here are a couple of posts that discuss the configuration options available to control how CKEditor generates the HTML.
http://stackoverflow.com/questions/3339710/how-to-configure-ckeditor-to-not-wrap-content-in-p-block/7266617#7266617
http://stackoverflow.com/questions/7441548/how-to-remove-unnecessary-tags-in-ckeditor-3-x/7563260#7563260
Be Well,
Joe