# Plugin per abbreviazioni e acronimi

**URL:** <https://meta.discourse.org/t/abbreviations-and-acronyms-plugin/38501>\
**Category:** Plugin\
**Tags:** deprecated\
**Created:** [26 Gennaio 2016, 10:47am UTC](https://meta.discourse.org/t/abbreviations-and-acronyms-plugin/38501 "2016-01-26T10:47:03Z")\
**Posts on this page:** 1\
**Showing post:** 27

<div class="post-metadata">

**Author:** ![BlackSheep](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blacksheep/32/50170_2.png) [@BlackSheep](https://meta.discourse.org/u/BlackSheep)\
**Post date:** [10 Agosto 2016, 12:04am UTC](https://meta.discourse.org/t/abbreviations-and-acronyms-plugin/38501/27 "2016-08-10T00:04:56Z")

</div>

So i have this code in a file called **abbreviations.js.es6**

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

registerOption((siteSettings, opts) => {
  opts.features['abbreviations'] = !!siteSettings.abbreviations_plugin_enabled;
});

function abbreviate(text) {
  var siteSettings = Discourse.SiteSettings;
  if (siteSettings.abbreviations_plugin_enabled) {
      //blabla.............
  }
  return text;
}

export function setup(helper) {
    helper.addPreProcessor(abbreviate);
}

```

The line

```javascript
var siteSettings = Discourse.SiteSettings;

```

is giving me some headaches. Can someone give me some advice on how to reach **Discourse.SiteSettings** from there?  
It works in the client, (i.e the preview window), but when I try to save the message that line gives an error, there is no way to save the message.

---

_[View the full topic](https://meta.discourse.org/t/abbreviations-and-acronyms-plugin/38501)._
