~/talk

Building a Block Based Editor in Phoenix LiveView

Talkat ElixirConf EU 2022 · 2022-06-09..06-10· [frontend-architecture, testing]
slides:none on file

A Notion‑style block editor built on Phoenix LiveView that stores blocks as a list of cells on the backend and uses a frontend JS hook to parse DOM, send selection and restore caret reliably; text updates are debounced 300ms debounce to avoid latency jumble. Code blocks use prism.js highlight with an overlay textarea plus phx-update ignore for input. End‑to‑end testing runs via Cypress E2E against a tiny playground Phoenix app, saves content as JSON, and supports undo/redo; tables and image blocks are experimental.

AI-written summary · about

  1. 0:0004:10 - Intro
  2. 6:1305:26 - Demo
  3. 11:3412:50 - Problem 1 - Content Editable + Attempts
  4. 16:1917:54 - Problem 2 - Score Creep
  5. 20:4823:25 - Problem 3 - Polish
  6. 23:2526:50 - Problem 4 - Dev Story
  7. 28:3828:44 - Problem 5 - Solved
  8. 33:4233:39 - Problem 6 - Release & Usage
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.