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

lost page when paste data from clipboard #13

Closed
DavidSun0403 opened this issue Feb 17, 2022 · 8 comments
Closed

lost page when paste data from clipboard #13

DavidSun0403 opened this issue Feb 17, 2022 · 8 comments

Comments

@DavidSun0403
Copy link

Test in both in version 1.2.6 and 1.2.4.
If the initial content is very large(more than three pages in my case). Then I paste some data from clipboard.
The second page will disappear.

@motla
Copy link
Owner

motla commented Feb 21, 2022

Hi. Thanks for reporting. I can't reproduce this behavior yet. It is maybe dependent to the web-browser you use and specific to the content you paste.

Please note this library is not yet adapted for large content, as stated in the README (see Issue 14 for more info).

However I can look at it if you provide an online playground, with the minimal initial content and the paste content which causes issues (for example you can fork this project and rebuild demo with the faulty content).
Also please give me the web browser you use and its version.

@motla motla added the acknowledged Acknowledged label Feb 21, 2022
@DavidSun0403
Copy link
Author

If you have a content more than two pages, stored in one data element, such as three pages content in data[0], and then paste a word from clipboard in anywhere in page 1, all content in page two will lost

@motla
Copy link
Owner

motla commented Jul 30, 2022

I tried but I'm afraid couldn't reproduce the issue... What web browser are you using?

@DavidSun0403
Copy link
Author

Chrome with latest version. should I send a vedio screen cap to you?

@DavidSun0403
Copy link
Author

Chrome: 106.0.5249.103

@motla
Copy link
Owner

motla commented Oct 9, 2022

Sorry I tried again without success.
I made a branch with a dummy example of 3-pages content. When I paste a word in the first page, I get no text loss (except a selection bug in some cases).
Please clone this example:

git clone -b test-issue13 https://github.com/motla/vue-document-editor.git

Please open docs/index.html to your web-browser, paste a word from clipboard anywhere in page 1 and tell me if you get the issue you mentioned.

If not you will have to provide me a minimal playground that fails so I can find the cause (fork the project, modify Demo.vue, then npm run build and make a pull request or send me a link).

In the meantime I'm now rewriting a new core which brings out the page management completely from Vue and should address most of the reported issues. It is tricky nonetheless so I can't give you a delay.

@motla
Copy link
Owner

motla commented Oct 9, 2022

⬆️ Please note that the example was on Vue3 but I just tested the Vue2 branch as well and I get the same result with the same content.

@motla motla removed the acknowledged Acknowledged label Oct 16, 2022
@motla
Copy link
Owner

motla commented Oct 30, 2022

Hello! I just released v2.1.0 with a new core for Vue3 which may correct your problem.
Please let me know this if you still have issues.

@motla motla closed this as completed Oct 30, 2022
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