diff --git a/addons/web_editor/static/src/js/editor/snippets.editor.js b/addons/web_editor/static/src/js/editor/snippets.editor.js index dd6ca884ff7..e95546939bb 100644 --- a/addons/web_editor/static/src/js/editor/snippets.editor.js +++ b/addons/web_editor/static/src/js/editor/snippets.editor.js @@ -4415,7 +4415,8 @@ var SnippetsMenu = Widget.extend({ const customizeTableBlock = renderToElement('web_editor.toolbar.table-options'); this.options.wysiwyg.odooEditor.bindExecCommand(customizeTableBlock); $(this.customizePanel).append(customizeTableBlock); - $title.append(this._toolbarWrapperEl.querySelector('#removeFormat')); + this._removeFormatButton = this._removeFormatButton || this._toolbarWrapperEl.querySelector('#removeFormat'); + $title.append(this._removeFormatButton); this._$toolbarContainer.append(this._toolbarWrapperEl); this._checkEditorToolbarVisibility();