Opened 11 years ago

Last modified 8 years ago

#10078 confirmed Bug

BBCode: No line-breaks when pasting paragraphed text

Reported by: p3r3 Owned by:
Priority: Normal Milestone:
Component: Core : Pasting Version: 3.6
Keywords: Mac Webkit Cc:

Description

When pasting a list of items from notepad/textedit in the bbcode editor line breaks are not preserved, this seems to be a chrome specific issue. Can be recreated in the demo section.

To recreate: 1.) Make a list of a few items in notepad/textedit "one two three"

2.) Copy, then paste into a blank bbcode ckeditor http://ckeditor.com/demo#bbcode

3.) Click source, see there are no line breaks "onetwothree", on some versions of chrome no text will be seen until hitting source.

I believe this is related to the br mode of the browser, it seems that chrome is inserting <p> tags when copied directly to the editor

Change History (7)

comment:1 Changed 11 years ago by p3r3

It looks like this editor did not preserve my formatting, the list should be on a new line for each item "one\ntwo\nthree\n"

comment:2 Changed 11 years ago by Jakub Ś

Keywords: Mac Webkit added
Status: newconfirmed
Version: 4.0.13.6
  1. This works fine on Windows. List items from Notepad paste nicely with br between them.
  2. This works fine on Linux. List items from text editor paste nicely with br between them.
  3. This doesn't work on Mac. List items from Notes are pasted as paragraphs which after switching modes results in one line. This is probably because Notes doesn't contain plain text but styled HTML.

Problem can be reproduced from CKE 3.6 rev. [6904] (when BBCode was introduced) on Webkit browsers.

Please also note that problem can be reproduced in latest CKEditor 4.x (v4).


@p3r3 this is waht I was able to reproduce. Could you tell me what problem you had exactly? What OS you are talking about (Mac/Win), which bowsers and what text editor.

on some versions of chrome no text will be seen until hitting source.

Please note that CKEditor supports only latest version of Webkit.

comment:3 Changed 11 years ago by p3r3

This is on Mac OSX and chrome 25

comment:4 Changed 10 years ago by Tobias Hößl

Summary: No line-breaks in paste from notepad/text in chrome (bbcode)BBCode: No line-breaks when pasting paragraphed text
Version: 3.64.4.4

This bug still exists in the latest released version (4.4.4) and appears to affect several systems / browsers.

Steps to reproduce the problem:

The following configurations I tested strip all of the line breaks / paragraphs:

  • Chrome 37 on MacOSX 10.8
  • Safari 7.0.6 on MacOSX 10.8
  • Firefox 32 on Ubuntu 14.04
  • Chrome 36 on Ubuntu 14.04
  • Chrome 37 on Windows 7
  • Opera 24 on Windows 7

The problem does not occur at the following configuration I tested:

  • Internet Explorer 11 on Windows 7

comment:5 Changed 10 years ago by Jakub Ś

Version: 4.4.43.6

@Cato don't change version number as it is used to indicate when problem started occurring!!!

Second, your comment is a duplicate of #7870

comment:6 Changed 10 years ago by Tobias Hößl

@j.swiderski: ok, sorry!

comment:7 Changed 8 years ago by Jakub Ś

Other issues with line breaks: #7870, #10078, #11524.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy