From 62fb1bb92493b00bd45ed3f4eced5ca8b23f81d6 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Wed, 18 May 2016 18:02:51 +0200 Subject: [REF] web_editor: code refactoring and simplification * Remove dead code + optimization * Use Dialog API from web module * Reorganize files * Correct buggy $() function for snippet option class * Add comments * Fix the snippet parent navigation : If a page contained a three level snippet structure (i.e A contains B contains C), when editing the following bug occured : If B or C was selected first, parenting buttons were correctly set. But if selecting A then C, clicking on the parent lead to going back on A instead of going on B. * Fix snippet thumbnail layout * Better isolate ui css from themes * MediaDialog image list : prevent displaying empty attachments * ... --- addons/web_editor/static/src/xml/editor.xml | 583 +++++++++++++--------------- 1 file changed, 271 insertions(+), 312 deletions(-) (limited to 'addons/web_editor/static/src/xml/editor.xml') diff --git a/addons/web_editor/static/src/xml/editor.xml b/addons/web_editor/static/src/xml/editor.xml index 49743987fc3..f4fb773c8c3 100644 --- a/addons/web_editor/static/src/xml/editor.xml +++ b/addons/web_editor/static/src/xml/editor.xml @@ -1,5 +1,10 @@ + + + + +
@@ -9,187 +14,72 @@
- - + + + + -
- - - -
- -
-
-
-
-
-

Scale the image to be as large as it needs to fill the whole content area. Part of the image may not be visible.

-
+ + + -

Assigning a focal point to ensure that the targeted area will be always visible

-
-
Click on the picture
-
- - - - - -
X: Y:
-
+ +
+
+ +
+
-
- -
-
-
-
-
-

Scale the image to the largest size such that both its width and height can fit inside the content area

+
+ +
+
+
+ -
-
- -
-
- -
+ +
+
- + + + + +
+
+
+
+
-
-
- Background size -

Sets the width and height of the background image in percent of the parent element.

-
- -
-
- -
%
-
-
-
-
- -
-
- -
%
-
-
-
-
-
- Background position -

Set the starting position of the background image.

-
- -
-
- -
%
-
-
-
-
- -
-
- -
%
-
-
-
-
-
- Background repeat -

Define if/how the background image will be repeated

- -
-
- -