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

OnPaste Hook not working correctly when selecting all content on IE #170

Open
LoganDupont opened this issue Jun 3, 2017 · 6 comments
Open

Comments

@LoganDupont
Copy link

It seems that the onPaste Hook is not working on IE when i try to select all the content that is inside the ng-wig and replace it with the clipboard it's content. Instead of replacing it, the content gets added to the content that was already inside the ngWig.

As example i took the demo for onPaste Hook with a little adaptation as IE doesn't support ES6 yet.
Plunker example

Reproduce steps:

  1. Go to IE11 and select the content by Ctrl+A
  2. Paste something
  3. You will see you pasted content is added at the end

Greets,
Logan

@LoganDupont
Copy link
Author

@stevermeister @bampakoa Any idea what cause this strange behavior?

@stevermeister
Copy link
Owner

@LoganDupont did not have time to dive into the issue, sorry

@stevermeister
Copy link
Owner

@LoganDupont can't reproduce, tried your planker and browserStack with IE11

@LoganDupont
Copy link
Author

LoganDupont commented Jun 10, 2017

@stevermeister Maybe the info that i gave you wasn't clear enough. Here is a video to reproduce it
884ee436514f8a3415c65acd077811d1

@stevermeister
Copy link
Owner

stevermeister commented Jun 10, 2017

after second try I found the issue, it appears not from the begging but after some manipulations with text inside ngWig. pretty weird behaviour.
ngWig is using standard pasteHtmlAtCaret method for pasting content. Nothing special

@LoganDupont
Copy link
Author

@stevermeister I changed the video to a gif. Hopes that clarify the problem that i had on IE11 and not on Firefox, chrome or edge.

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