Code Duplication    Length = 31-31 lines in 2 locations

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

@@ 4481-4511 (lines=31) @@
4478
        }
4479
        return self$$1.reflow();
4480
      },
4481
      postRender: function () {
4482
        var self$$1 = this;
4483
        var startPos;
4484
        setTimeout(function () {
4485
          self$$1.classes.add('in');
4486
          self$$1.fire('open');
4487
        }, 0);
4488
        self$$1._super();
4489
        if (self$$1.statusbar) {
4490
          self$$1.statusbar.postRender();
4491
        }
4492
        self$$1.focus();
4493
        this.dragHelper = new DragHelper(self$$1._id + '-dragh', {
4494
          start: function () {
4495
            startPos = {
4496
              x: self$$1.layoutRect().x,
4497
              y: self$$1.layoutRect().y
4498
            };
4499
          },
4500
          drag: function (e) {
4501
            self$$1.moveTo(startPos.x + e.deltaX, startPos.y + e.deltaY);
4502
          }
4503
        });
4504
        self$$1.on('submit', function (e) {
4505
          if (!e.isDefaultPrevented()) {
4506
            self$$1.close();
4507
          }
4508
        });
4509
        windows.push(self$$1);
4510
        toggleFullScreenState(true);
4511
      },
4512
      submit: function () {
4513
        return this.fire('submit', { data: this.toJSON() });
4514
      },

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

@@ 3959-3989 (lines=31) @@
3956
        }
3957
        return self$$1.reflow();
3958
      },
3959
      postRender: function () {
3960
        var self$$1 = this;
3961
        var startPos;
3962
        setTimeout(function () {
3963
          self$$1.classes.add('in');
3964
          self$$1.fire('open');
3965
        }, 0);
3966
        self$$1._super();
3967
        if (self$$1.statusbar) {
3968
          self$$1.statusbar.postRender();
3969
        }
3970
        self$$1.focus();
3971
        this.dragHelper = new DragHelper(self$$1._id + '-dragh', {
3972
          start: function () {
3973
            startPos = {
3974
              x: self$$1.layoutRect().x,
3975
              y: self$$1.layoutRect().y
3976
            };
3977
          },
3978
          drag: function (e) {
3979
            self$$1.moveTo(startPos.x + e.deltaX, startPos.y + e.deltaY);
3980
          }
3981
        });
3982
        self$$1.on('submit', function (e) {
3983
          if (!e.isDefaultPrevented()) {
3984
            self$$1.close();
3985
          }
3986
        });
3987
        windows.push(self$$1);
3988
        toggleFullScreenState(true);
3989
      },
3990
      submit: function () {
3991
        return this.fire('submit', { data: this.toJSON() });
3992
      },