Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#13970 closed Bug (invalid)

writing a very long word, a horizontal scroll bar appears

Reported by: pig.li Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

writing a very long word with latest ckeditor, a horizontal scroll bar will appear using IE11 & Firefox. like "abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabc" without white-space in the string.

Change History (2)

comment:1 Changed 3 years ago by Jakub Ś

Resolution: invalid
Status: newclosed
Version: 4.5.5

Please use word-wrap: break-word; in CCS rule for body in contents.css or your page css if you are using inline editor.

Chrome for example adds this style by default. For other browsers you need to add this rule manually.

comment:2 Changed 3 years ago by Edson

CKEDITOR.addCss( 'body {word-wrap:break-word;' );
CKEDITOR.replace( 'editor' );

https://jsfiddle.net/d9pmfeyx/9/

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy