~/talk

Rich text editing with Draft.js

Talkat HolyJS 2016 · on Sunday, 2016-12-11· [react]

Claim: Draft.js replaces fragile contenteditable by syncing the DOM to an immutable data-structure (Immutable.js) so React controls rendering, yielding instant edits, cheap undo/redo and a raw JSON export for the server. Concrete tools: decorators and block renderers plus custom style maps, entities and a plugin API. Outcomes: Facebook uses it in production, @-mentions, drag‑and‑drop images, linkify, emojis (emojiOne) and hashtags work, accessibility is achievable, collaboration is still poor and Slate is the suggested alternative.

AI-written summary · about

  1. 0:00Start
  2. 0:25Introduction
  3. 0:57Rich Text Editing
  4. 6:04Facebook Notes
  5. 12:54How To Use Draft Chess
  6. 13:48What Are Controlled Form Components
  7. 17:41Editor State Construct
  8. 21:47Immutable Data Structure
  9. 22:34Convert from Raw
  10. 26:04Apply a Custom Block Render Function
  11. 35:40Read-Only Mode
  12. 42:43Change the Editor State Programmatically
  13. 47:23Tables
~/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.