# Add button to select all text in a preformatted block

**URL:** <https://meta.discourse.org/t/add-button-to-select-all-text-in-a-preformatted-block/30878>\
**Category:** Feature\
**Tags:** completed\
**Created:** [July 8, 2015, 2:35am UTC](https://meta.discourse.org/t/add-button-to-select-all-text-in-a-preformatted-block/30878 "2015-07-08T02:35:22Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![modius](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/modius/32/108600_2.png) [@modius](https://meta.discourse.org/u/modius)\
**Post date:** [April 13, 2017, 6:30am UTC](https://meta.discourse.org/t/add-button-to-select-all-text-in-a-preformatted-block/30878/9 "2017-04-13T06:30:34Z")

</div>

Apologies for resurrecting such an old thread.. but I thought others might be interested in a working solution. We recently cracked our last hurdle getting it all to work with Ember by running on `post cooked` rather than `DOM ready`.

 ![](https://global.discourse-cdn.com/meta/original/3X/8/6/86325bf2188543d937d5d69fb483da3d609f64cf.jpg)

You can try out the feature, grab the code and update your own Discourse forum here:

> **[Daemon | Serious web solutions](https://www.daemon.com.au)**
>
> We create strategies for succeeding online. Design and technical services for education, enterprise and government since 1995.

Enjoy!

---

_[View the full topic](https://meta.discourse.org/t/add-button-to-select-all-text-in-a-preformatted-block/30878)._
