diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-13 00:10:33 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-13 00:10:33 +0300 |
commit | 8cdf31a1f97786973eb60564ef667e8416d1b1c8 (patch) | |
tree | da2c8f275dc32269bfadda39b74deb28137366c9 /app/assets/javascripts/content_editor/services/content_editor.js | |
parent | bf1990164b801489b4475504701eefb66146e724 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/content_editor/services/content_editor.js')
-rw-r--r-- | app/assets/javascripts/content_editor/services/content_editor.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/content_editor/services/content_editor.js b/app/assets/javascripts/content_editor/services/content_editor.js index 209160ad80c..a387322bff7 100644 --- a/app/assets/javascripts/content_editor/services/content_editor.js +++ b/app/assets/javascripts/content_editor/services/content_editor.js @@ -19,6 +19,10 @@ export class ContentEditor { return doc.childCount === 0 || (doc.childCount === 1 && doc.child(0).childCount === 0); } + dispose() { + this.tiptapEditor.destroy(); + } + once(type, handler) { this._eventHub.$once(type, handler); } |