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

Issue with copying HTML content of a modal on IE11 #3457

Closed
cpperey opened this issue Jun 5, 2019 · 7 comments · Fixed by #3489
Closed

Issue with copying HTML content of a modal on IE11 #3457

cpperey opened this issue Jun 5, 2019 · 7 comments · Fixed by #3489

Comments

@cpperey
Copy link

cpperey commented Jun 5, 2019

Describe the bug

Unable to copy html content of a modal and pasting it into another application (i.e. Word) except for another browser (i.e. Chrome).

Steps to reproduce the bug

  1. Go to Modal page in bootstrap-vue.js.org (https://bootstrap-vue.js.org/docs/components/modal)
  2. Click on the very first "Launch Modal Demo" button
  3. Select the HTML content inside the modal (paragraph)
  4. Paste into Word
  5. Nothing gets pasted

Expected behavior

It should paste the formatted content.

Versions

Libraries:

  • BootstrapVue: 2.0.0.-rc19
  • Vue: 2.6

Environment:

  • Device: Laptop
  • OS: Windows10
  • Browser: IE11
@tmorehouse
Copy link
Member

tmorehouse commented Jun 5, 2019

@xtenpeben Try upgrading to BootstrapVue 2.0.0-rc.22 and see if the issue persists.

@cpperey
Copy link
Author

cpperey commented Jun 5, 2019

@tmorehouse The issue still persists in bootstrap-vue.js.org site. I just assumed that's on 22. I'll update my local dev to 22 and see.

@tmorehouse
Copy link
Member

tmorehouse commented Jun 5, 2019

I just tested with IE 11, and see that pasting into Word 2010 does not work, while pasting the same thing into Notepad and Notepad++ and Excel 2010 works (as well as a few other applications I have tried). Pasting as text does work in Word 2010 though.

Visually when pasting into Word, the text does not show up, but if clicking the reveal codes button, the text does show:

image

image

@cpperey
Copy link
Author

cpperey commented Jun 5, 2019

Thanks.

Also, not sure if this would help, bootstrap 4 by itself that I have on a separate non-vue project. Copy / paste works just fine for all browsers including IE11.

@tmorehouse
Copy link
Member

tmorehouse commented Jun 5, 2019

We do have a text-selection detection routine, which is mainly used to prevent a backdrop-click from happening during text selection. I wonder if that might be interfering with how Word is picking up the full copy information meta-data.

jacobmllr95 pushed a commit that referenced this issue Jun 11, 2019
…ixes #3457) (#3489)

* fix(modal): fix IE11 issue with copy/paste from modal into Word

* Update modal.js

* Update _modal.scss

* Update modal.js

* Update modal.spec.js

* Update modal.js

* Update modal.spec.js

* Update modal.js
@cpperey
Copy link
Author

cpperey commented Jun 11, 2019

Thanks!

@tmorehouse
Copy link
Member

Will be available in release 2.0.0-rc.23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants