7850ee318f
This commit adds a new helpful function to the composer controller which can be used to focus the composer and insert text, regardless of whether the consumer knows whether the composer is open or has a draft. This is good for cases where an action needs to copy text to the composer or open it with text after navigating to a URL. The inspiration for this addition is the discourse-chat plugin, which needs to be able to copy quoted markdown from the chat and insert it into the composer, and unlike in the topic controller we have no idea of the state of the composer from chat. |
||
---|---|---|
.. | ||
images | ||
javascripts | ||
stylesheets |