You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a PixieBrix mod developer, I want meaningful error messages for the Insert Text at Cursor brick in the Page Editor, so that I can debug errors myself
There's no original error, this is the result of execCommand returning false. This specifically happens when there's no field focused/selected or if the field is read-only.
As seen in the last related PR, we generally don't try to get the selected/focused field before running execCommand unless necessary.
thrownewError("Failed to insert text using execCommand");
. So we either need to change that error, or wrap it in InsertAtCursorEffect. I would wrap it and keep the error thrown by insertAtCursorWithCustomEditorSupport
User Story
As a PixieBrix mod developer, I want meaningful error messages for the Insert Text at Cursor brick in the Page Editor, so that I can debug errors myself
Motivation
See: https://pixiebrix.slack.com/archives/C0436P48QHY/p1711401954499719
The text was updated successfully, but these errors were encountered: