BobaBoard / boba-editor

An advanced text editor based on QuillJS, vaguely inspired by Tumblr's.
MIT License
9 stars 10 forks source link

Refactor Tooltip to create embed options based on an injected config. #23

Closed featherbutt closed 3 years ago

featherbutt commented 3 years ago

This paves the way for us to include embed types in the codebase without them automatically being available in the UI, reduces code duplication, reduces the chance of human error if embed types are spelled incorrectly in the tooltip code, and adds some additional type checking.

This also allows us to have different tooltips in different circumstances. For instance, we could test experimental embeds by rolling them out to !bobaland first, without affecting other boards.