As a user without translator rights, it is possible to insert text from the translation helpers, even though the translation editor text area is read-only.
Steps to reproduce:
- Go to https://translatewiki.net/w/i.php?title=Special:Translate&group=ext-translate-0-all&language=fy&filter=!translated&action=translate as anonymous user
- Click a simple message
I. Translation editor opens
II. Messaging is "You need permission to translate messages."
III. Textarea is read-only.
- In the translation helper area, click "Use as translation" below "Beheer" (or whatever is suggested)
IV. String is inserted in editor, which remains read-only.
V. Nothing should happen (or something else, but at least no string insertion in the editor).
One way to fix this would be to update suggestionAdder in ext.translate.editor.helpers.js to check whether the textarea is readonly.