Explain how to replicate "white-space: pre-wrap" behavior in ckeditor5 content
📝 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.
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.
Still relevant.
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.
Still relevant.
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.
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).