Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#13495 closed Bug (fixed)

Text is not word-wrapped in paste popup in firefox and IE

Reported by: yuhai Owned by: Szymon Kupś
Priority: Normal Milestone: CKEditor 4.5.2
Component: General Version: 3.0
Keywords: Cc: byran.zaugg@…

Description

  1. Use firefox and IE, go to http://ckeditor.com/demo#bbcode demo.
  2. Right-click on text area and select Paste
  3. Popup will show
  4. Type some text long enough to take more than 1 line

Actual results All text is typed in one line and scrollbars show. Word-wrap is not enabled. Please refer to the attachment

Expected results No scrollbar shows and text is word-wrapped. The issue can't be reproduced on chrome.

Attachments (1)

reproduce.gif (2.1 MB) - added by yuhai 3 years ago.

Change History (7)

Changed 3 years ago by yuhai

Attachment: reproduce.gif added

comment:1 Changed 3 years ago by Jakub Ś

Status: newconfirmed
Version: 4.5.03.0

Chrome adds "break-word" by itself. I guess this is not a problem to add this style to body element in ckeditor-dev\plugins\clipboard\dialogs\paste.js

Code:

var htmlToLoad = '<html dir="' + editor.config.contentsLangDirection + '"' +
		' lang="' + ( editor.config.contentsLanguage || editor.langCode ) + '">' +
		'<head><style>body{margin:3px;height:95%}</style></head><body>' +
		'<script id="cke_actscrpt" type="text/javascript">' +

This ticket could be fixed with #13405.

comment:2 Changed 3 years ago by Byran Zaugg

Cc: byran.zaugg@… added

comment:3 Changed 3 years ago by Szymon Kupś

Owner: set to Szymon Kupś
Status: confirmedassigned

comment:4 Changed 3 years ago by Szymon Kupś

Status: assignedreview
Last edited 3 years ago by Szymon Kupś (previous) (diff)

comment:5 Changed 3 years ago by Piotrek Koszuliński

Resolution: fixed
Status: reviewclosed

Fixed on master with git:9966124.

comment:6 Changed 3 years ago by Piotrek Koszuliński

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