facebook / lexical-ios

Lexical iOS is an extensible text editor framework that integrates the APIs and philosophies from Lexical Web with a Swift API built on top of TextKit.
MIT License
538 stars 38 forks source link

Add embeddable images to the playground #16

Closed amyworrall closed 1 year ago

amyworrall commented 1 year ago

This may or may not rely on task #15, the experience may be bad without it!

Add a way to choose an image to embed within the playground.

You can use LexicalInlineImagePlugin as a starting point, but you may have to modify its ImageNode, especially if you want to support embedding local images from the phone's camera roll. (Currently LexicalInlineImagePlugin only supports images via URL.)

I'm not tagging this task as "good first issue", because it requires learning a lot about our decorator architecture, and it also requires working out which bits of the decorator architecture are currently missing or not working well in editable mode. (It would be appropriate to file issues for the missing/broken bits, you don't have to fix everything yourself as part of this task!)