Skip to content

Pasting text deletes newlines #6141

@jancborchardt

Description

@jancborchardt

Steps to reproduce

  1. Copy some text with newlines, like some generated lorem ipsum
  2. Paste it in the composer

Expected behavior

The newlines should be kept as they are.

Actual behavior

Original text from lipsum.org:
image

Pasted in the composer:
image

Pasted in the CKeditor demo for testing:
image

Mail app version

Current on cloud.nc.com

Mailserver or service

No response

Operating system

No response

PHP engine version

No response

Web server

No response

Database

No response

Additional info

Also happens when copying from other places like GitHub, Atom editor, etc. Does not happen when pasting into https://ckeditor.com/ckeditor-5/demo/

Metadata

Metadata

Assignees

Labels

1. to developbugfeature:editorAll bugs, features and pull requests about the (HTML) editorpapercutAnnoying recurring issue with possibly simple fix.

Type

No type

Projects

Status

☑️ Done

Status

🎉 Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions