# Modal Window

**URL:** <https://meta.discourse.org/t/modal-window/46798>\
**Category:** Plugin\
**Created:** [July 4, 2016, 9:11am UTC](https://meta.discourse.org/t/modal-window/46798 "2016-07-04T09:11:47Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [July 23, 2016, 11:30am UTC](https://meta.discourse.org/t/modal-window/46798/3 "2016-07-23T11:30:02Z")

</div>

You need to create a file named named modal-window.js.es6 at `assets/javascripts/lib/discourse-markdown/`

Then inside it, you need:

```plaintext
import { registerOption } from 'pretty-text/pretty-text';

registerOption((siteSettings, opts) => {
  opts.features["modal-window"] = true;
});

export function setup(helper) {
  helper.whiteList(['label[for]']);
}

```

---

_[View the full topic](https://meta.discourse.org/t/modal-window/46798)._
