1

My question is different from one I've seen answered quite a bit here and elsewhere. My line breaks are showing up in WYSIWYG and the rendered content just fine. However, I was wondering if there is a way to make CKEditor/WYSIWYG preserve line breaks when I view the code as well. I sometimes need to edit code in the HTML, and it's a mild inconvenience to have to sift through minified code to find stuff.

Any help is appreciated. Thanks.

2

Edit WYSIWYG profile that uses CKEditor and in "Cleanup and output" settings check "Apply simple source formatting". (screenshots below for visuals)


enter image description here


enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.