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

Paste problem with CKEditor 4.7.0 #472

Closed
smiska opened this issue Jun 6, 2017 · 6 comments
Closed

Paste problem with CKEditor 4.7.0 #472

smiska opened this issue Jun 6, 2017 · 6 comments
Labels
resolution:duplicate A duplicate of an already reported issue.

Comments

@smiska
Copy link

smiska commented Jun 6, 2017

Are you reporting a feature or a bug?

Bug

Provide detailed reproduction steps (if any)

  1. Copy text to clipboard
  2. Paste from the clipboard to the beginning/end/highlighted part of textarea

The screenshots provide pictures about the debugging process. Trying to insert the word "Thank" from the clipboard, in ckeditor.js the this.$.innerHTML contains the full document body, which gets overwritten. In the second and third picture the steps after the insert are visible.

Expected result

The content from the clipboard gets inserted to the location of the cursor

Actual result

The whole document gets wiped out

Other details

  • Browser: 58.0.3029.110
  • OS: Ubuntu 16.04 (64bit)
  • CKEditor version: 4.7.0 full

screenshot from 2017-06-06 13-07-11
screenshot from 2017-06-06 13-07-36
screenshot from 2017-06-06 13-07-27

@mlewand mlewand changed the title Paste problem with Ckeditor 4.7.0 Paste problem with CKEditor 4.7.0 Jun 6, 2017
@mlewand
Copy link
Contributor

mlewand commented Jun 6, 2017

Thanks @smiska for the report, can I ask you to provide more detailed step-by-step report? It's my understanding that you're trying to paste a simple "Thank" text into the end of header, and as a result content gets wiped, but I can't reproduce it.

Can you reproduce it on any of our demos?

@smiska
Copy link
Author

smiska commented Jun 7, 2017

I'll try to reproduce it in the examples section, in the meantime I provide a screenshot about how the 4.4.0 version of the CKEditor software works in our system. The root issue in #479 seems to be similar. The this keyword somehow doesn't refer to only a dom element, but the entire document in string format. After the paste the elements are in place but are not shown.
screenshot from 2017-06-07 17-03-23

@mlewand
Copy link
Contributor

mlewand commented Jun 7, 2017

Ok we're waiting for the steps then, because screens won't give us too much of a value now. Try to provide repro steps on one of our CKEditor demos.

@hponka
Copy link

hponka commented Jun 14, 2017

Is the editor inside a table? If yes, this is the same bug as here: #460

@smiska
Copy link
Author

smiska commented Jun 19, 2017

The text boxes are inside nested divs in which CKEditor is used to edit the text, but those divs are in placed in table elements indeed, and the full editor software (where the problem occurs) has wrapper tables as well. I hope it helps. This problem doesn't happen with CKE 4.6.2 .

@mlewand
Copy link
Contributor

mlewand commented Jul 5, 2017

Duplicate of #460.

Thanks for help @hponka indeed it does look like the same case. @smiska please follow #460 issue to keep an eye on it.

@mlewand mlewand closed this as completed Jul 5, 2017
@mlewand mlewand added resolution:duplicate A duplicate of an already reported issue. and removed status:pending labels Jul 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution:duplicate A duplicate of an already reported issue.
Projects
None yet
Development

No branches or pull requests

3 participants