https://sonarly.com/issue/17823?type=bug
Clicking a Rich Text widget on a dashboard never sets its editing state, making it impossible to type or edit any content in the widget.
Fix: Added `setPageLayoutEditingWidgetId(widgetId)` to the default fallback path in `useEditPageLayoutWidget.ts` (line 69).
**Root cause:** Commit `2a6fcfcfb3` ("Side Panel Sub Page Framework®") moved `setPageLayoutEditingWidgetId(widgetId)` from being called unconditionally at the top of `handleEditWidget` to being called only inside IFRAME/GRAPH/FIELDS-specific branches. The `STANDALONE_RICH_TEXT` widget type falls through to the default path, which only closed the side panel without setting the editing widget ID.
**What this fixes:** When a user clicks on a Rich Text widget in dashboard edit mode, `pageLayoutEditingWidgetId` is now correctly set to the widget's ID. This makes `isThisWidgetBeingEdited` true in `StandaloneRichTextWidget.tsx`, which sets `isEditable` to true, allowing the BlockNote editor to accept input.
**Why this approach:** This matches the pre-regression pattern where the editing widget ID was set for ALL widget types. Widget types with dedicated side panel settings (IFRAME, GRAPH, FIELDS) handle navigation + ID setting in their own branches and return early, so they are unaffected by this change.