otwcode/otwarchive — pull request #1514 by ariana-paris (2014-02-01 23:42:13+00:00)
Title: Allow underline and alignment to be preserved when pasting from Microsoft Word

This fixes the residual problems identified in https://code.google.com/p/otwarchive/issues/detail?id=3253

Since the affected file is minified, the diff is practically impossible to parse, but the change is simply to amend this:

```javascript
var g=l.paste_word_valid_elements;
g || (g="@[style],-strong/b,-em/i,-span,-p,-ol,-ul,-li,-h1,-h2,-h3,-h4,-h5,-h6,-table,-tr,-td[colspan|rowspan],-th,-thead,-tfoot,-tbody,-a[href|name],sub,sup,strike,br");
```

to this:

```javascript
var g=l.paste_word_valid_elements;
g || (g="@[style|align],-strong/b,-em/i,-u,-span,-p,-ol,-ul,-li,-h1,-h2,-h3,-h4,-h5,-h6,-table,-tr,-td[colspan|rowspan],-th,-thead,-tfoot,-tbody,-a[href|name],sub,sup,strike,br");
```

Note the additional *align* in the attribute match, and the *-u* in the list of allowed elements. Someone at TinyMCE needs a smack with a trout.