[GOAL] Make a segment editor
ecumene opened this issue · comments
- Take quill out of the editor and into its own component
- Take in a segment ID or maybe some segment value and onChange callback as props
Start from here:
https://github.com/parrottjrs/think-write/blob/ee68ed7b6b31594804f5df68cbf5c0a63a268ca6/src/pages/Editor.tsx#L11C18-L11C18
In the end:
<SegmentEditor value={segmentContent} onChange={() => ...} isLocked={segment.locked} />
This line:
think-write/src/pages/Editor.tsx
Line 39 in ee68ed7
Should look like this:
{sessions.map(() => <SegmentEditor value={segmentContent} onChange={() => ...} isLocked={segment.locked} />)}