Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When pasting to trilium from Windows clipboard, CR/LF are converted to spaces #4

Closed
UNIVAC-Colonel-Panic opened this issue Jan 14, 2018 · 2 comments

Comments

@UNIVAC-Colonel-Panic
Copy link

Source text example of multiple lines beginning with a dash:

- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- Donec imperdiet orci eu arcu tincidunt varius.
- Fusce semper mi at sem interdum posuere.
- Pellentesque viverra erat et erat fringilla, condimentum feugiat dolor scelerisque.
- Vestibulum faucibus eros a nulla bibendum, at dignissim augue placerat.
- Praesent congue sem tristique convallis tempus.

When pasted into trilium, instead of a bulleted list:

  • Lorem ipsum dolor sit amet, consectetur adipiscing elit.
  • Donec imperdiet orci eu arcu tincidunt varius.
  • Fusce semper mi at sem interdum posuere.
  • Pellentesque viverra erat et erat fringilla, condimentum feugiat dolor scelerisque.
  • Vestibulum faucibus eros a nulla bibendum, at dignissim augue placerat.
  • Praesent congue sem tristique convallis tempus.

it's converted to a single paragraph:

- Lorem ipsum dolor sit amet, consectetur adipiscing elit.  - Donec imperdiet orci eu arcu tincidunt varius.  - Fusce semper mi at sem interdum posuere.  - Pellentesque viverra erat et erat fringilla, condimentum feugiat dolor scelerisque.  - Vestibulum faucibus eros a nulla bibendum, at dignissim augue placerat.  - Praesent congue sem tristique convallis tempus.
@zadam
Copy link
Owner

zadam commented Jan 14, 2018

Yep, I noticed this as well. This issue comes from CKEditor which is used as the editing component - see ckeditor/ckeditor5#766

I hope they will be able to fix this soon.

@zadam zadam added this to the public-release milestone May 27, 2018
@zadam
Copy link
Owner

zadam commented Jul 8, 2018

fixed in master with upgrade to CKEditor 10.1.0 - newlines are now preserved

Automatic conversion to bulleted list is not implemented (and is out of scope of this issue).

@zadam zadam closed this as completed Jul 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants