ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

Explain how to replicate "white-space: pre-wrap" behavior in ckeditor5 content

Open Routhinator opened this issue 6 years ago • 4 comments

📝 Provide a description of requested docs changes

What is the purpose and what should be changed?

Currently the docs do not seem to document a way to provide CSS to the .ck-content p element that works when trying to get white-space: pre-wrap behaviour to work in the CKEditor5 main editor element.

Based on the custom styling explaination for ckeditor5-angular https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/angular.html#styling I have added:

.ck-editor__editable_inline p {
  white-space: pre-wrap !important;
}

And this applies the css property to the element containing the text, however if effect is ignored and \n characters are all displayed on 1 line. I need to make ckeditor use the pre-wrap behaviour for backwards compatibility.

Routhinator avatar Feb 23 '20 03:02 Routhinator

There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.

CKEditorBot avatar Oct 11 '23 05:10 CKEditorBot

Still relevant.

Routhinator avatar Oct 12 '23 00:10 Routhinator

There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.

CKEditorBot avatar Oct 11 '24 23:10 CKEditorBot

Still relevant.

Routhinator avatar Oct 15 '24 17:10 Routhinator

There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.

CKEditorBot avatar Oct 15 '25 23:10 CKEditorBot

We've closed your issue due to inactivity. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it).

CKEditorBot avatar Nov 14 '25 23:11 CKEditorBot