From f615cfda89dae2e9a550d25868b11bc06b97cfcb Mon Sep 17 00:00:00 2001 From: Samuel Degueldre Date: Fri, 18 Oct 2019 09:06:09 +0000 Subject: [IMP] website, *: rework snippet anchor system * web_editor Previously, the user could choose their anchor names using a modal window, anchor names also have weird rules, this was not a great user experience. This commit makes the anchor button generate anchors automatically based on the first title in a section, or the snippet name if there are none. If the anchor name is already taken, it is suffixed by a number. After it has been generated, it is also copied to the clipboard and the user is shown a toast to tell them the anchor has been generated and copied. The anchor is displayed in the toast along with an edit button that will open the same edition modal as previously, but it is now less restrictive. Part of https://github.com/odoo/odoo/pull/38959 maintask-2066614 task-2088270 --- addons/website/static/src/xml/website.editor.xml | 1 - 1 file changed, 1 deletion(-) (limited to 'addons/website/static/src/xml') diff --git a/addons/website/static/src/xml/website.editor.xml b/addons/website/static/src/xml/website.editor.xml index 9f8a2e302fc..31ffb28704d 100644 --- a/addons/website/static/src/xml/website.editor.xml +++ b/addons/website/static/src/xml/website.editor.xml @@ -115,7 +115,6 @@
-

The chosen name is not valid (use only a-Z A-Z 0-9 - _)

The chosen name already exists

-- cgit v1.2.3