Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Can not paste list from MS Word #1379

Closed
kateutlik opened this issue Oct 26, 2016 · 2 comments
Closed

Can not paste list from MS Word #1379

kateutlik opened this issue Oct 26, 2016 · 2 comments
Labels

Comments

@kateutlik
Copy link

kateutlik commented Oct 26, 2016

Hello,

I am using textAngular for one of my angular application (AngularJS v1.3.15). Recently I have faced a tricky issue. When text was pasted there is an error in console:
textAngular-rangy.min.js:221 Uncaught TypeError: Failed to execute 'setStartBefore' on 'Range': parameter 1 is not of type 'Node'.

Reproducable: always, using attached file or creating it by the steps below
Browsers: all
Operating system: all

Also I want to notice, that $html param is empty

in the ta paste function, but there is a text in clipboard. All my attempts to find any information about a similar issue have failed.

Steps to reproduce:

  • open the textAngular demo site
  • copy all text from this file (ctrl+a, ctrl+c)
    angular-text-issue.docx
  • paste text in the textAngular

By the way, the document was created by copying and pasting list from the textAngular.

Could you please have a look at the issue?

Thank you in advance,
Kate

@JoelParke
Copy link
Collaborator

JoelParke commented Oct 27, 2016

Thanks for reporting this.  I will attempt to duplicate this problem as soon as I have some time.
I will take a look at this later today.

@JoelParke JoelParke added the bug label Oct 27, 2016
@JoelParke
Copy link
Collaborator

I have reproduced this and will attempt to fix and check-in a fix by late Sunday.  

I will cut a new release (I hope by the end of the coming week).  

JoelParke added a commit to JoelParke/textAngular that referenced this issue Dec 4, 2016
JoelParke added a commit that referenced this issue Dec 4, 2016
Fixed bug #1379 and converted all files with tabs to only use spaces
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants