Jump to content

CKEditor - How to Wrap the text in Source View


McAdam
 Share

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

2140241179_Screenshot2021-09-24at12_55_41.thumb.png.6e4349a55fb62187cc50b5b6e7499207.png

 

Link to comment
Share on other sites

Hi,

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

image.png.0957abf1b8ebd70cf5f520afba926374.png

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
 Share

  • Recently Browsing   0 members

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