fix(newsfeed): load saved content when reopening the edit modal

Sync modal editor state from the updated feed on open, clear editFeed
on reset, and remount TextEditor so a second edit shows the latest HTML
instead of stale content.
This commit is contained in:
Rotimi Best
2026-06-11 20:32:39 +01:00
parent bbd243d214
commit 89e44d4fab
6 changed files with 116 additions and 31 deletions
+2 -1
View File
@@ -9,7 +9,8 @@
"clean": "turbo clean && find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +",
"clean:pnpm": "pnpm clean && pnpm store prune",
"format": "turbo run format",
"format:check": "git diff --name-only -z --diff-filter=d HEAD~1 | xargs -0 -I{} sh -c '[ ! -L \"{}\" ] && printf \"%s\\0\" \"{}\"' | xargs -0 prettier --check --ignore-unknown",
"format:changed": "node scripts/format-changed.mjs --write",
"format:check": "node scripts/format-changed.mjs --staged --check",
"postinstall": "test -d .git && lefthook install || true",
"release": "standard-version",
"db:reset": "pnpm --filter @cio/db db:reset",