Added recognition of `<a>` and `text-decoration` variations
authorAlexander Ebert <ebert@woltlab.com>
Thu, 16 Nov 2017 11:33:58 +0000 (12:33 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 16 Nov 2017 11:33:58 +0000 (12:33 +0100)
wcfsetup/install/files/js/3rdParty/redactor/redactor.js

index 7fe97816a0b946e9d5b717195f11169eff778ea7..d49ee6b4843df9b77a611cd88317a2ba94ee2d2e 100644 (file)
                                        // clear text decoration
                                        if (tag != 'span')
                                        {
-                                               this.$editor.find(this.opts.inlineTags.join(', ')).each($.proxy(function(i,s)
+                                               this.$editor.find(this.opts.inlineTags.join(', ') + ', a').each($.proxy(function(i,s)
                                                {
                                                        var $el = $(s);
 
                                                        }
 
                                                        var property = $el.css('text-decoration');
-                                                       if (property === 'line-through')
+                                                       if (property.indexOf('line-through') === 0)
                                                        {
                                                                $el.css('text-decoration', '');
                                                                this.utils.removeEmptyAttr($el, 'style');