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

Custom copy seems to have no "plain text" #2652

Closed
fredck opened this issue Nov 30, 2016 · 1 comment · Fixed by ckeditor/ckeditor5-clipboard#18
Closed

Custom copy seems to have no "plain text" #2652

fredck opened this issue Nov 30, 2016 · 1 comment · Fixed by ckeditor/ckeditor5-clipboard#18
Assignees
Labels
package:clipboard type:improvement This issue reports a possible enhancement of an existing feature.
Milestone

Comments

@fredck
Copy link
Contributor

fredck commented Nov 30, 2016

I wanted to check the HTML that the online demo puts in the clipboard with the new Custom Copy support introduced with ckeditor/ckeditor5-clipboard#7. For that purpose, I did the following:

  1. CMD+A to select all.
  2. CMD+C to copy.
  3. Opened a text-only editor (Sublime or Notepad) and CMD+V to paste in an empty file.

Issue: Nothing has been pasted.

Then, I tried pasting in rich-text applications, like Word or CKEditor 4, and I see that it works like a charm. This showed me that nothing goes to clipboard only for plain-text on copy.

After a bit of thinking, I started understanding what should be the right expectations. I was wrong to expect that the HTML would be pasted. The right behavior instead, would be having a plain text version of the copied text being pasted.

@Reinmar
Copy link
Member

Reinmar commented Nov 30, 2016

I forgot about that. We need to put plain text into the clipboard. So we'll need to develop a "textify" converter.

@scofalik scofalik self-assigned this Apr 14, 2017
Reinmar referenced this issue in ckeditor/ckeditor5-clipboard Apr 20, 2017
Fix: Plain text data is now available in clipboard when copying or cutting editor contents. Closes #11.
@mlewand mlewand transferred this issue from ckeditor/ckeditor5-clipboard Oct 9, 2019
@mlewand mlewand added this to the iteration 10 milestone Oct 9, 2019
@mlewand mlewand added status:confirmed type:improvement This issue reports a possible enhancement of an existing feature. package:clipboard labels Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:clipboard type:improvement This issue reports a possible enhancement of an existing feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants