Manual translation composer does not support image upload or paste (console: this.drop is not a function)
Description:
When editing a post’s manual localization via “Translate → Edit localization manually”, the translation composer does not allow image uploads or pasting images.
Steps to reproduce:
-
Open any post with the Discourse Translation feature enabled.
-
Click the “Translate” button → choose “Edit localization manually.”
-
Try to:
-
drag an image into the translation composer, or
-
paste an image from clipboard.
-
-
Nothing happens — uploads are ignored, and the browser console shows errors.
Observed behavior:
-
Image upload and paste do not work.
-
Console errors:
Uncaught TypeError: this.drop is not a function at Object.handleEvent (content.js:1)and
PresenceChannel '/discourse-presence/undefined/...' not found -
Indicates missing
drophandler andtopic_idcontext inpost-translation-editor.gjs.
Expected behavior:
- Allow uploads/pasting like the normal composer for translated image.
Notes:
Seems the translation composer runs in a simplified editor context without composer-upload integration. A fix could be adding upload handling.
