KonnorRogers / rhino-editor

A tiptap integration for Rails compatible with ActionText
https://rhino-editor.vercel.app
MIT License
210 stars 8 forks source link

Pasting images #156

Open DanielJackson-Oslo opened 7 months ago

DanielJackson-Oslo commented 7 months ago

Currently there's no support for pasting images. Trix has this.

Anything I can do to help implement it?

KonnorRogers commented 7 months ago

If you feel comfortable, feel free to dive in and make a PR. If not, I'll see if I can work on something this weekend.

Here's Trix's implementation:

https://github.com/basecamp/trix/blob/3f22606970e74b78ae1fd7d5204530039ae1b93b/src/trix/controllers/level_2_input_controller.js#L39

The level_2 is probably what we want to support. IIRC the level_0 implementation is for legacy browsers.