From 59cc261448b67c424051a623c5c8d76ddd20aa71 Mon Sep 17 00:00:00 2001 From: Andrea Ulliana Date: Thu, 3 Jan 2019 08:40:45 +0000 Subject: [PATCH] [IMP] website, *: allow creating anchor links * portal, web_editor Anchor Link: - Some visual improvements of the link dialog. - New 'Page Anchor' field. - System by default: top and bottom. - Shows existing anchors. Creation of the anchor: - New option 'Anchor Name' to be able to create an anchor. task-1913458 closes odoo/odoo#29150 --- addons/portal/views/portal_templates.xml | 4 +- .../static/src/js/widgets/widgets.js | 9 ++- addons/web_editor/static/src/xml/editor.xml | 2 +- .../src/js/content/snippets.animation.js | 25 ++++++ addons/website/static/src/js/editor/editor.js | 68 +++++++++++++++++ .../static/src/js/editor/snippets.options.js | 76 +++++++++++++++++++ addons/website/static/src/js/utils.js | 54 ++++++++++--- .../website/static/src/xml/website.editor.xml | 24 ++++++ addons/website/views/snippets.xml | 6 ++ 9 files changed, 250 insertions(+), 18 deletions(-) diff --git a/addons/portal/views/portal_templates.xml b/addons/portal/views/portal_templates.xml index 6827424deea..3d6a0e0f7e4 100644 --- a/addons/portal/views/portal_templates.xml +++ b/addons/portal/views/portal_templates.xml @@ -24,7 +24,7 @@
-
+