Hi, first time poster. Loving Discourse so far!
I’m trying to access the Tag Chooser - I can do so in JQuery via:
But, if I try to add an existing tag programmatically, using:
It then shows up on the UI, but not once I save it (guessing it didn’t save to the model) because I didn’t run
this.set('tags', tags); – because I don’t have access to the
this object. When I modify tag-chooser to get access, setting also doesn’t seem to work as expected.
But, I’m trying to get access to the main JS object that is built in tag-chooser.js (in _initValue) so that I can add a tag to it… or maybe to access the Ember object to add a tag that way. I see that it looks like the main Global variables are in the JS Discourse object… but I’m not sure how to do something like Discourse.get(‘Tags’) or Discourse.set(‘Tags’) or what.
Any suggestions on where to start? I’m going through Ember tutorials now, but it’s a bit slow going.