jkomoros / card-web

The web app behind thecompendium.cards
Apache License 2.0
55 stars 8 forks source link

Have a richer body editor #55

Open jkomoros opened 5 years ago

jkomoros commented 5 years ago

Ideally it would be a basic WSIWYG (but content editable is such a pain...)

Have a normalizeCard(body) that takes the card attributes provided and normalizes them to the id (not the name)

jkomoros commented 5 years ago

Since the supported subset of HTML is so limited, various options might even work... for example, a contenteditable (allowing selection of the underlying slide text) with all events overridden, and then figure out given a selection where in the underlying HTML we are

jkomoros commented 5 years ago

might be able to use the selection API combined with key handlers and node tests to figure out what's selected

jkomoros commented 5 years ago