# Need help to \*\*getSelected\*\* and \*\*replace\*\* from Toolbarevent

**URL:** https://meta.discourse.org/t/need-help-to-getselected-and-replace-from-toolbarevent/226905
**Category:** Development
**Created:** [May 13, 2022, 12:01am UTC](https://meta.discourse.org/t/need-help-to-getselected-and-replace-from-toolbarevent/226905 "2022-05-13T00:01:20Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [May 14, 2022, 11:49am UTC](https://meta.discourse.org/t/need-help-to-getselected-and-replace-from-toolbarevent/226905/5 "2022-05-14T11:49:49Z")

</div>

I did think it was somewhat of a long-shot. 🙂 I saw ‘api reference’ and thought I’d chance it.

I think my ridiculously wide-of-the-mark answer may have already revealed my inexperience in this area, but (at the risk of doing exactly the same thing again 🙂) I think there are some good general pointers in the [Developing Discourse Themes & Theme Components](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648) if you’ve not seen that already?

> [@Developing Discourse Themes & Theme Components](https://meta.discourse.org/t/developing-discourse-themes-theme-components/93648/1):
>
> Modifying Discourse templates

But hopefully someone more knowledgable will turn up and be able to offer something actually helpful. 🤞 🙂

---

_[View the full topic](https://meta.discourse.org/t/need-help-to-getselected-and-replace-from-toolbarevent/226905)._
