Closed Bug 2061996 Opened 3 months ago Closed 6 days ago

Implement rich description editor surface

Categories

(Calendar :: Calendar Frontend, task)

task

Tracking

(Not tracked)

RESOLVED FIXED
163 Branch

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:

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.
Blocks: 2061997
Depends on: 2062003
No longer depends on: 2061760
Type: enhancement → task
Depends on: 2092568
Depends on: 2092577

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.

Assignee: nobody → arschmitz
Status: NEW → ASSIGNED
Target Milestone: --- → 163 Branch

Pushed by jtracey@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/d0a2cf0bc38d
Add Squire to the Calendar Description subview. r=tobyp

Status: ASSIGNED → RESOLVED
Closed: 6 days ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: