From f300b53b67e0ec6ab3bd1ed9accc8d3440cca9b5 Mon Sep 17 00:00:00 2001 From: Benoit Socias Date: Wed, 30 Aug 2023 09:06:26 +0200 Subject: [PATCH] [FIX] website: remove stable fix of body line height option In [1] the stable patch of the body line height option was mistakenly included in the forward port to master. This commit removes that patch. [1]: https://github.com/odoo/odoo/commit/89c93aba75a9c4d7e304c4decd4d5d3673d4df08 task-3471117 closes odoo/odoo#133555 Signed-off-by: Quentin Smetz (qsm) --- .../website/static/src/js/editor/snippets.editor.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/addons/website/static/src/js/editor/snippets.editor.js b/addons/website/static/src/js/editor/snippets.editor.js index 42464025cbf..9ea5ededccf 100644 --- a/addons/website/static/src/js/editor/snippets.editor.js +++ b/addons/website/static/src/js/editor/snippets.editor.js @@ -82,17 +82,6 @@ const wSnippetMenu = weSnippetEditor.SnippetsMenu.extend({ FontFamilyPickerUserValueWidget.prototype.fontVariables = fontVariables; return this._super(...arguments); }, - /** - * @override - */ - _patchForComputeSnippetTemplates($html) { - // TODO Remove in master. - const themeBodyLineHeightEl = $html.find( - "[data-selector='theme-paragraph'] we-input[data-customize-website-variable][data-variable='body-line-height']" - )[0]; - delete themeBodyLineHeightEl.dataset.unit; - delete themeBodyLineHeightEl.dataset.saveUnit; - }, /** * Depending of the demand, reconfigure they gmap key or configure it * if not already defined.