Our forum is expecting a feature: when images are uploaded, before users click the “reply” button, the textarea can automatically prompt up some instructions to ask for some tags for the image. e.g. there will be an extra line generated automatically after the line of the image in some fixed format, which can later be filled up by the users.
The reason we need this feature is that we need tags for all images in all posts/replies in the forum, and this simple mechanism can help our users to follow the rule, and help our server to store the well-tagged images in the database.
I’m trying to achieve this by modifying a few js files, such as
/discourse/app/assets/javascripts/discourse/app/components/composer-editor.js
or
/Users/yanxiaofeng/discourse/app/assets/javascripts/pretty-text/addon/upload-short-url.js
But I’m not quite familiar with discourse and js I find a few plugins working with the composer editor but obviously they are not only changing one or two js files, and I’m confused about the scope and difficulty of building this feature.
Any comments/ideas/suggestions/references are appreciated!!!