Implement rich description editor surface
Categories
(Calendar :: Calendar Frontend, task)
Tracking
(Not tracked)
People
(Reporter: arschmitz, Assigned: arschmitz)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [calendar-ui-create-edit])
Attachments
(1 external file)
Summary:
Choose the rich-editor technology and implement the Description subview’s formatted editing surface.
Links:
-
Zeplin description subview: https://app.zeplin.io/project/66dd0f2b2fe8f1b63cda36f1/screen/6a106e77af1fc66a2ce8e12d
-
Preferred editor candidate to assess first: Squire: https://github.com/neilj/Squire
-
Interaction guide: Create > Description sub menu: https://docs.google.com/document/d/15OpMthOHmBGyPpDBNRW8vp6uCxeoitBp8n7Fti3LD10/edit?tab=t.why4m6lqup0#heading=h.gaemt67fq00c
-
SOW: In Scope: https://docs.google.com/document/d/1ZVLX8VjxaYsSBuywLyFsXf27Q-Pf55g8QxT8G9z0eZ4/edit?tab=t.0#heading=h.bz8l40hwl6cr
-
Planning: Rich Text Editor - Calendar Editor Needs
-
Planning: Questions - Q12 Rich Description Editor Technology
Acceptance criteria:
- Pick an editor beginning with an assessment of Squire for supported formatting, keyboard accessibility, and the required future HTML round trip.
- Implement the selected editor’s toolbar and input surface for the agreed MVP formatting set.
- Rich-description draft state is a plain serializable editor-document representation. Redux contains no editor instance, selection, range, DOM node,
calIEvent, calendar object, or live platform value. - Editor input dispatches narrow description-section patches and survives Back navigation without committing an event.
- Selection, caret, IME composition, undo-stack internals, toolbar popup state, and focus handling remain local editor state. Store-driven updates must not reset that local state during ordinary typing.
- A route/session replacement discards the old editor instance and prevents stale input events from patching the new session’s draft.
- The editor’s content area scrolls within the existing Description subview; it does not grow, resize, or re-anchor the dialog after opening.
- Add focused tests for toolbar behavior, supported formatting, serializable draft patches, local-selection preservation, Back-navigation retention, route replacement, scroll containment, keyboard behavior, and axe coverage where supported.
Out of scope:
- Loading event descriptions, sanitization, calendar-property serialization, Save-time persistence, read-dialog compatibility, a raw editor object in Redux, and direct calendar mutation. Those data-conversion concerns belong to Bug 2061997.
| Assignee | ||
Updated•3 months ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•9 days ago
|
||
Squire runs in a packaged HTML iframe so its element and selection APIs use an HTML document.
Thunderbird supplies formatting controls and a sanitized HTML draft.
Updated•9 days ago
|
| Assignee | ||
Updated•7 days ago
|
| Assignee | ||
Updated•7 days ago
|
Pushed by jtracey@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/d0a2cf0bc38d
Add Squire to the Calendar Description subview. r=tobyp
Description
•