[FIX] web_editor: clear format missing from editor toolbar

Current behaviour before commit:

In v16.0 and above clear format button was missing from
snippet toolbar.

Desired behaviour after commit:

Now clear format button is getting appeared in snippet
toolbar.

task-3638147

closes odoo/odoo#150620

X-original-commit: 701bbe40554ea9b6867171a755124fe5b635988b
Signed-off-by: Antoine Guenet (age) <age@odoo.com>
This commit is contained in:
Adnan Saiyed
2024-01-25 13:42:47 +00:00
parent 6ae472959e
commit f0e20c676a
@@ -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();