مترجم الترجمة يفتقد دعم تحميل الصور

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:

  1. Open any post with the Discourse Translation feature enabled.

  2. Click the “Translate” button → choose “Edit localization manually.”

  3. Try to:

    • drag an image into the translation composer, or

    • paste an image from clipboard.

  4. 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 drop handler and topic_id context in post-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.


إعجاب واحد (1)