diff --git a/cms/static/js/views/pages/container.js b/cms/static/js/views/pages/container.js index 5d6df772391a..c49c2439473e 100644 --- a/cms/static/js/views/pages/container.js +++ b/cms/static/js/views/pages/container.js @@ -225,7 +225,7 @@ function($, _, Backbone, gettext, BasePage, }, initializePasteButton() { - if (this.options.canEdit && !self.options.isIframeEmbed) { + if (this.options.canEdit && !this.options.isIframeEmbed) { // We should have the user's clipboard status. const data = this.options.clipboardData; this.refreshPasteButton(data); @@ -242,7 +242,7 @@ function($, _, Backbone, gettext, BasePage, refreshPasteButton(data) { // Do not perform any changes on paste button since they are not // rendered on Library or LibraryContent pages - if (!this.isLibraryPage && !this.isLibraryContentPage && !self.options.isIframeEmbed) { + if (!this.isLibraryPage && !this.isLibraryContentPage && !this.options.isIframeEmbed) { // 'data' is the same data returned by the "get clipboard status" API endpoint // i.e. /api/content-staging/v1/clipboard/ if (this.options.canEdit && data.content) {