Code Duplication    Length = 15-15 lines in 2 locations

public/js/tinymce/themes/inlite/theme.js 1 location

@@ 9527-9541 (lines=15) @@
9524
          }
9525
        });
9526
      },
9527
      renderHtml: function () {
9528
        var self = this;
9529
        var layout = self._layout;
9530
        var tabsHtml = '';
9531
        var prefix = self.classPrefix;
9532
        self.preRender();
9533
        layout.preRender(self);
9534
        self.items().each(function (ctrl, i) {
9535
          var id = self._id + '-t' + i;
9536
          ctrl.aria('role', 'tabpanel');
9537
          ctrl.aria('labelledby', id);
9538
          tabsHtml += '<div id="' + id + '" class="' + prefix + 'tab" ' + 'unselectable="on" role="tab" aria-controls="' + ctrl._id + '" aria-selected="false" tabIndex="-1">' + self.encode(ctrl.settings.title) + '</div>';
9539
        });
9540
        return '<div id="' + self._id + '" class="' + self.classes + '" hidefocus="1" tabindex="-1">' + '<div id="' + self._id + '-head" class="' + prefix + 'tabs" role="tablist">' + tabsHtml + '</div>' + '<div id="' + self._id + '-body" class="' + self.bodyClasses + '">' + layout.renderHtml(self) + '</div>' + '</div>';
9541
      },
9542
      postRender: function () {
9543
        var self = this;
9544
        self._super();

public/js/tinymce/themes/modern/theme.js 1 location

@@ 9335-9349 (lines=15) @@
9332
          }
9333
        });
9334
      },
9335
      renderHtml: function () {
9336
        var self = this;
9337
        var layout = self._layout;
9338
        var tabsHtml = '';
9339
        var prefix = self.classPrefix;
9340
        self.preRender();
9341
        layout.preRender(self);
9342
        self.items().each(function (ctrl, i) {
9343
          var id = self._id + '-t' + i;
9344
          ctrl.aria('role', 'tabpanel');
9345
          ctrl.aria('labelledby', id);
9346
          tabsHtml += '<div id="' + id + '" class="' + prefix + 'tab" ' + 'unselectable="on" role="tab" aria-controls="' + ctrl._id + '" aria-selected="false" tabIndex="-1">' + self.encode(ctrl.settings.title) + '</div>';
9347
        });
9348
        return '<div id="' + self._id + '" class="' + self.classes + '" hidefocus="1" tabindex="-1">' + '<div id="' + self._id + '-head" class="' + prefix + 'tabs" role="tablist">' + tabsHtml + '</div>' + '<div id="' + self._id + '-body" class="' + self.bodyClasses + '">' + layout.renderHtml(self) + '</div>' + '</div>';
9349
      },
9350
      postRender: function () {
9351
        var self = this;
9352
        self._super();