-
Notifications
You must be signed in to change notification settings - Fork 0
[PR] Adding WYSIWYG initial implementation
#2
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
Conversation
|
Kinda frustrating having to manually bump the They should either upgrade or use another library, as stated in singerdmx/flutter-quill#1350 :\ |
|
That is frustrating. 🤦♂️ |
|
Perhaps, but I think I can work with having I'll see to it after sorting through this epic. |
|
Been trying to paste images directly into the clipboard and not from the gallery (as an optional route) but it doesn't work in Android devices (solely, it works on other platforms). Unfortunately, this is not straightforward in Android devices. I'll keep doing the "opening gallery and choosing" route. |
|
While image upload works on mobile, it does not work on |
|
@LuchoTurtle please consider opening a separate issue for pasting images from clipboard for Saw your comment on using |
|
Opened a PR that addresses an issue that I had embedding an image -> singerdmx/flutter-quill#1367. Although it works, I'm testing this with an image URL, not a local file. I don't believe this is actually possible, so we'd need to upload an image to our |
… images responsively. #1
|
I've dismissed the previous PR because it doesn't properly work on mobile devices. Ugh, having this working on both If I follow a basic Quill editor, embedding image on the editor works fine on mobile. However, to have it work for the web, I need to:
final embedButtons = FlutterQuillEmbeds.buttons(
// ......
// `onImagePickCallback` is called after image (from any platform) is picked
onImagePickCallback: _onImagePickCallback,
// `webImagePickImpl` is called after image (from web) is picked and then `onImagePickCallback` is called
webImagePickImpl: _webImagePickImpl,
// ........
);
This is only to make it compilable and workable on the ImageUniversalUI().platformViewRegistry.registerViewFactory(imageUrl, (viewId) {
return html.ImageElement()
..src = imageUrl
..style.height = 'auto'
..style.width = 'auto';
});This will insert an image with the original dimensions into the editor. Now, we've reached a point where (as you've said on standup), is easier (and ultimately better for us) to upload the image to our
I'll try overriding these settings after documenting and fully testing what I have right now. I'll see if there's any |
Welcome to Codecov 🎉Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment. Thanks for integrating Codecov - We've got you covered ☂️ |
|
I've added the rest of the documentation and added all of the details into the I feel like I've spent too much already on trying to get this to work, so I wager it makes sense to tackle uploading to |
|
Following #1 (comment), I'm submitting this for review. It does not yet upload images to |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
Converted your demo video to |
nelsonic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @LuchoTurtle ![]()





closes #1
This adds an implementation example using https://github.com/singerdmx/flutter-quill and documents the options available in order to fulfill the requirements stated in #1.