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

Pasting as plain text retaining format #620

Closed
JamesPreston1993 opened this issue Jul 7, 2017 · 11 comments · Fixed by #1830
Closed

Pasting as plain text retaining format #620

JamesPreston1993 opened this issue Jul 7, 2017 · 11 comments · Fixed by #1830
Assignees
Labels
browser:chrome The issue can only be reproduced in the Chrome browser. browser:firefox The issue can only be reproduced in the Firefox browser. browser:ie The issue can only be reproduced in the Internet Explorer browser. browser:ios The issue can only be reproduced on a mobile device with iOS. status:confirmed An issue confirmed by the development team. type:bug A bug.
Milestone

Comments

@JamesPreston1993
Copy link

JamesPreston1993 commented Jul 7, 2017

Are you reporting a feature or a bug?

Bug

Provide detailed reproduction steps (if any)

  1. Create an inline editor instance
  2. Set forcePasteAsPlainText to true in the config
  3. Insert formatted text into the editor (e.g. <strong>Bold</strong> <span>My span</span>
  4. Copy formatted text and paste into the editor (or another instance of an editor)

Expected result

The pasted text should have all formatting removed and replaced with plain text

Actual result

The format of the text is retained on paste

Other details

  • Browser: Chrome, Firefox, IE, Safari
  • OS: Windows 10
  • CKEditor version: 4.7.0
  • Installed CKEditor plugins: sharedspaces, font

NOTE:
This was tested in IE but did not occur.
Pasting from external sources (e.g. Word or HTML from a page) does not exhibit the same behaviour

@beatadelura beatadelura self-assigned this Jul 10, 2017
@beatadelura beatadelura added status:confirmed An issue confirmed by the development team. browser:chrome The issue can only be reproduced in the Chrome browser. browser:firefox The issue can only be reproduced in the Firefox browser. browser:ie The issue can only be reproduced in the Internet Explorer browser. browser:ios The issue can only be reproduced on a mobile device with iOS. type:bug A bug. labels Jul 10, 2017
@beatadelura beatadelura removed their assignment Jul 10, 2017
@mlewand
Copy link
Contributor

mlewand commented Aug 28, 2017

@beatadelura is it Chrome only (title, original report) or does it affect any other browser (labels)? In case it does please, update the title / "Other details" section accordingly.

@beatadelura beatadelura changed the title Pasting as plain text retaining format in Chrome Pasting as plain text retaining format Aug 28, 2017
@beatadelura
Copy link
Contributor

@mlewand It occurs in other browsers as well. Issue updated.

@kreatIL
Copy link

kreatIL commented Sep 21, 2017

Same problem here. Browsers: Chrome, FF, Safari. Force pasting as plain text is still working in IE only.

@msamsel
Copy link
Contributor

msamsel commented Mar 19, 2018

I wasn't able to reproduce the problem in current editor version (4.9.0).
I test it on MacOS under Chrome, Firefox, Safari and Windows 10 x64 with Edge, Chrome, Firefox.
Each of this browser paste content without formatting.
I've used this page for testing purpose. https://codepen.io/msamsel/pen/zWogdX
@JamesPreston1993, @kreatIL problem seems to be solved. Or do I missed something? If so, please provide more details how to reproduce bug.

@msamsel msamsel added status:pending and removed status:confirmed An issue confirmed by the development team. type:bug A bug. labels Mar 19, 2018
@kreatIL
Copy link

kreatIL commented Mar 19, 2018

After doing the upgrade to 4.9.0 I couldn't reproduce the problem either. I think this issue could be marked as solved.

@mlewand
Copy link
Contributor

mlewand commented Mar 19, 2018

Thanks for help @kreatIL that gives us more confidence.

Let's wait for the OP. If there's no response in our standard 2 weeks we can close the issue.

@JamesPreston1993
Copy link
Author

I can still reproduce it in the scenario it was logged and using the codepen provided by @msamsel

The steps to reproduce are to format the text in the editor, copy the formatted text from within the editor and paste it into to the same editor instance or a different editor instance

@msamsel
Copy link
Contributor

msamsel commented Mar 20, 2018

@JamesPreston1993 so the issue appears only when you copy content between editors or inside editor? I thought that text came from external place.

I see that wrong behaviour is possible to reproduce in such scenario on both inline and iframe editor.

@JamesPreston1993
Copy link
Author

@msamsel That's correct, it seems to behave as expected when copying from external sources

@msamsel msamsel added type:bug A bug. status:confirmed An issue confirmed by the development team. and removed status:pending labels Mar 20, 2018
@msamsel
Copy link
Contributor

msamsel commented Mar 20, 2018

@JamesPreston1993 thank you for the clarification :)

@Comandeer Comandeer added this to the 4.10.0 milestone Apr 10, 2018
@Comandeer
Copy link
Member

Closed in #1830. Fix will be included in 4.10.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser:chrome The issue can only be reproduced in the Chrome browser. browser:firefox The issue can only be reproduced in the Firefox browser. browser:ie The issue can only be reproduced in the Internet Explorer browser. browser:ios The issue can only be reproduced on a mobile device with iOS. status:confirmed An issue confirmed by the development team. type:bug A bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants