Long lines in forum editor's source-view mode trail are hard to read

neqis
neqis

When editing a post in source-mode here in the forums, long lines trail off to the right, so only a small portion is visible at any one time. This makes editing in source mode more difficult.

The cause is that white-space is set to "pre" on .cke_source in "/plugins/CKEditor/skins/flat/editor.css". Setting it instead to "pre-wrap" fixes this issue by allowing long lines to wrap, but otherwise preserving white-space.

Comments

  • thaen
    thaen
    Posts: 943

    Thanks for pointing out the specific fix!  We don't have easy access to the CSS files for these forums, but I can add JavaScript snippets.  So I added a style to the page with JavaScript to alter the white-space style to pre-wrap.  Let me know if you see any issues.

    Obsidian Portal Developer

  • neqis
    neqis
    Posts: 21

    Lines wrap nicely in source mode; thanks.

  • thaen
    thaen
    Posts: 943

    Huzzah!!

    Obsidian Portal Developer

Sign In or Register to comment.

July 2022
Signs and Portends

Read the feature post on the blog
Return to Obsidian Portal

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Discussions