edit_page.php
Term Editor Page View
Emits only the data the editor needs; the form itself is rendered by the termEditPage component from GET /api/v1/terms/for-edit, so /word/edit, /word/edit-term and /words/{id}/edit all share one implementation with the reading view's modal.
Variables expected:
- $textId: int - Text ID (0 when editing an existing term directly)
- $position: int - Word position in the text (0 when not from a text)
- $wordId: int|null - Term ID, or null when creating from a text position
- $returnUrl: string - Where to go once editing finishes
PHP version 8.1