Jump to content

CKEditor - How to Wrap the text in Source View


Recommended Posts

How can I force the text to wrap in source view of the editor. I don't want the horizontal scroll bar to appear.
I've been searching for a solution for this and came across a couple of fixes but none of them took effect.
  1. overwriting the 'white-space' property of the "cke_source" selector in the "editor_gecko.css" file of the CKEditor module. This file is located at: \sites\all\libraries\ckeditor\skins\editor_gecko.css
    .cke_source { white-space: pre-wrap !important; }
  2. added the same rule under the custom editor CSS file in /site/modules/InputfieldCKEditor/contents.css



Link to comment
Share on other sites


i may be wrong but the image you show doesn't look at all like PW CKeditor


even when i add a lot of plugins and/or functionnalities... (not the case here but adding font-size, colors, background-colors, and so on doesn't change the display except for some more buttons 🙂 ) and, by default, the text is wrapped inside the source view, at least when using the pw default sourcedialog extension checked, what i alwasy do
are you sure you're using the default pw ckeditor?

have a nice day

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...