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 into editor (from external editor like Word or Google Docs) behaves differently on android and iphone. Iphone not useable. #2454

Open
1 task done
taylor-hutyra opened this issue Jan 28, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@taylor-hutyra
Copy link

Have you checked for an existing issue?

Flutter Quill Version

10.8.5

Steps to Reproduce

This is my first github bug report so please excuse me for bad formatting.

I use The quill editor for some notes storage in my app. Some of my users want to copy and paste from a Word document or other resource that they already had notes in. However, pasting on android loses some formatting (it's ok though, it looks mostly ok) while pasting on iphone leaves an invisible wall of text where some symbols used for bullets are still visible.

Here is my code for the editor.

import 'package:flutter_quill/flutter_quill.dart' as quill;
....
....
....
quill.QuillEditor.basic(
                controller: _controller,
                focusNode: editorFocusNode,
                configurations: quill.QuillEditorConfigurations(
                  autoFocus: false,
                  placeholder: 'Your notes here...',
                ),
              )

I'm using the focus node and auto focus to drop the keyboard on certain events, but other than that, it's pretty basic.

i have tried using extensions and the native_bridge packages but neither changed anything. I saw many adjacent issues but none just talking about this.

Expected results

Expect pasting text from external resources (word, google doc, etc) to be visible (and preferably formatted reasonably similar).

Actual results

There is no visible text on paste.

Additional Context

This is copy and paste from a word document with no extra functionality other than bullets, bold, italicize and maybe an emoji.

Image
Image

@taylor-hutyra taylor-hutyra added the bug Something isn't working label Jan 28, 2025
@taylor-hutyra
Copy link
Author

I added the text color button into the tool bar and so far what I'm seeing is that on iOS only, when I copy and paste in text from Word, it automatically applies a FF000000 color that is clear.

@taylor-hutyra
Copy link
Author

Digging into this a little more, it seems that the way editors handle copying is interesting.

Both Word and Google docs, in their editor apps, did this (whether in print preview or not). However, if I exported as PDF opened the PDF and copy/pasted from there it copied over just fine.

I'm not an expert with this kind of thing, but am looking into some information about what goes to the clipboard from within editor apps.

@taylor-hutyra taylor-hutyra changed the title Paste into editor behaves differently on android and iphone. Iphone not useable. Paste into editor (from external editor like Word or Google Docs) behaves differently on android and iphone. Iphone not useable. Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant