<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Odoo/addons/web_editor/static/src/js/widgets/widgets.js, branch 14.0</title>
<subtitle>The current checkout of upstream Odoo</subtitle>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/'/>
<entry>
<title>[REF] web_editor,*: Move and rename files to prepare refactoring</title>
<updated>2019-01-17T08:40:21+00:00</updated>
<author>
<name>Christophe Matthieu</name>
<email>chm@odoo.com</email>
</author>
<published>2018-12-28T17:49:21+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=de444335b7da30a2ab3a4c5b92c9731a023f3f07'/>
<id>de444335b7da30a2ab3a4c5b92c9731a023f3f07</id>
<content type='text'>
The refactoring of the wysiwyg editor and 'html' field allows us to
move some of the code that was in web_editor but only used in website or
in mass_mailing. Some parts are still in web_editor but will be
moved at a later time.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The refactoring of the wysiwyg editor and 'html' field allows us to
move some of the code that was in web_editor but only used in website or
in mass_mailing. Some parts are still in web_editor but will be
moved at a later time.</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] website, *: allow creating anchor links</title>
<updated>2019-01-09T16:16:01+00:00</updated>
<author>
<name>Andrea Ulliana</name>
<email>aul@odoo.com</email>
</author>
<published>2019-01-03T08:40:45+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=59cc261448b67c424051a623c5c8d76ddd20aa71'/>
<id>59cc261448b67c424051a623c5c8d76ddd20aa71</id>
<content type='text'>
* 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</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* 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</pre>
</div>
</content>
</entry>
<entry>
<title>[REF] web_editor, web_unsplash: review load more feature</title>
<updated>2018-12-04T11:17:23+00:00</updated>
<author>
<name>qsm-odoo</name>
<email>qsm@odoo.com</email>
</author>
<published>2018-11-29T18:24:11+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=78a30d44cf8f1ce0d4d3fc53481a87eebeaea088'/>
<id>78a30d44cf8f1ce0d4d3fc53481a87eebeaea088</id>
<content type='text'>
* Simplify the code
* Make the feature mork without unsplash
* Handle corner cases

task-1896705</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Simplify the code
* Make the feature mork without unsplash
* Handle corner cases

task-1896705</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] web_editor, *: improve media dialog</title>
<updated>2018-12-04T10:06:11+00:00</updated>
<author>
<name>Andrea Ulliana</name>
<email>aul@odoo.com</email>
</author>
<published>2018-11-27T09:19:45+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=1f847a1e2eed63086448ceb451bd1a2f87c8c641'/>
<id>1f847a1e2eed63086448ceb451bd1a2f87c8c641</id>
<content type='text'>
* web_unsplash, website_sale

- Visual improvements and cleaning in each tab: video, documents,
  pictogram, images.

- Only one search input for both the local library and unsplash.

- Replace the idea of multiple pages by adding a 'Load More' button.

task-1896705</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* web_unsplash, website_sale

- Visual improvements and cleaning in each tab: video, documents,
  pictogram, images.

- Only one search input for both the local library and unsplash.

- Replace the idea of multiple pages by adding a 'Load More' button.

task-1896705</pre>
</div>
</content>
</entry>
<entry>
<title>[MERGE] forward port branch saas-11.4 up to 3c108977c1e</title>
<updated>2018-10-22T14:59:51+00:00</updated>
<author>
<name>Christophe Simonis</name>
<email>chs@odoo.com</email>
</author>
<published>2018-10-22T13:39:05+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=b81c2bce846c94b5695d680ebbc30f1cfe51e614'/>
<id>b81c2bce846c94b5695d680ebbc30f1cfe51e614</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] web_editor: hide link buttons duplicates instead of removing them</title>
<updated>2018-10-19T09:58:00+00:00</updated>
<author>
<name>qsm-odoo</name>
<email>qsm@odoo.com</email>
</author>
<published>2018-10-19T09:58:00+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=932fdb4e24e4f187adbe37ba6babe8159fbca39a'/>
<id>932fdb4e24e4f187adbe37ba6babe8159fbca39a</id>
<content type='text'>
For example, if primary = alpha, the primary button option is removed
in the link dialog. When editing a primary button, this lead to broken
behaviors. Hiding the button does the trick.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For example, if primary = alpha, the primary button option is removed
in the link dialog. When editing a primary button, this lead to broken
behaviors. Hiding the button does the trick.</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] web_editor: properly show all website attachments</title>
<updated>2018-10-10T10:58:07+00:00</updated>
<author>
<name>qsm-odoo</name>
<email>qsm@odoo.com</email>
</author>
<published>2018-10-09T16:12:06+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=f9a16f7bf5b8b8801582233ba54979af8114a846'/>
<id>f9a16f7bf5b8b8801582233ba54979af8114a846</id>
<content type='text'>
Correct commit https://github.com/odoo/odoo/commit/a9366de8f90ea4106d306c585043a42f089c86d4
Indeed some attachments may not have a datas_fname field, like URL
attachments created before saas-11.4 and theme attachments from 12.0.

Closes https://github.com/odoo/odoo/pull/27610
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Correct commit https://github.com/odoo/odoo/commit/a9366de8f90ea4106d306c585043a42f089c86d4
Indeed some attachments may not have a datas_fname field, like URL
attachments created before saas-11.4 and theme attachments from 12.0.

Closes https://github.com/odoo/odoo/pull/27610
</pre>
</div>
</content>
</entry>
<entry>
<title>[ADD] *: support SVG images</title>
<updated>2018-10-03T15:48:01+00:00</updated>
<author>
<name>Pedro M. Baeza</name>
<email>pedro.baeza@gmail.com</email>
</author>
<published>2018-08-27T21:36:33+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=1be50fdeafcd2b94f7b2f47d6e5bc4b6ebaceadd'/>
<id>1be50fdeafcd2b94f7b2f47d6e5bc4b6ebaceadd</id>
<content type='text'>
Introduce official support for SVG files in the framework, including the
following parts:

1. When client-side SVG images are uploaded, the content is displayed until
you save using data URI scheme according RFC 2397 [1]. This scheme requires
to specify content format. Using hardcoded "image/png" works for all images
types except SVG.
Type-sniffing is done using "magic byte" detection via the first base64
encode byte, so that the proper data URI scheme can be used.
This should not cause SVG-related security problems as the file is
displayed through `&lt;img&gt;` tag, which does not allow SVG scripting [2].

2. Make /web/image controller compatible with SVG

3. Add support for SVG files for company logo, which uses a dedicated
controller.

4. Resizing of SVG files is a no-op, as it makes little sense for a
vector-based format. We also want to avoid micro-alterations to the SVG
document (in "natural" viewport parameters) as we would store multiple
copies of the files in the filestore.

5. Because SVG files are inherently dangerous, upload of SVG files is
restricted to administrators, either by blocking it directly before
saving it in the database (binary fields with attachment=False), or by
neutering them to text/plain mimetype (for binary fields with
attachment=True)

6. Add tests for the SVG upload cases and for the non-admin uploads.

[1] https://tools.ietf.org/html/rfc2397
[2] https://www.w3.org/wiki/SVG_Security

Closes #26635
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Introduce official support for SVG files in the framework, including the
following parts:

1. When client-side SVG images are uploaded, the content is displayed until
you save using data URI scheme according RFC 2397 [1]. This scheme requires
to specify content format. Using hardcoded "image/png" works for all images
types except SVG.
Type-sniffing is done using "magic byte" detection via the first base64
encode byte, so that the proper data URI scheme can be used.
This should not cause SVG-related security problems as the file is
displayed through `&lt;img&gt;` tag, which does not allow SVG scripting [2].

2. Make /web/image controller compatible with SVG

3. Add support for SVG files for company logo, which uses a dedicated
controller.

4. Resizing of SVG files is a no-op, as it makes little sense for a
vector-based format. We also want to avoid micro-alterations to the SVG
document (in "natural" viewport parameters) as we would store multiple
copies of the files in the filestore.

5. Because SVG files are inherently dangerous, upload of SVG files is
restricted to administrators, either by blocking it directly before
saving it in the database (binary fields with attachment=False), or by
neutering them to text/plain mimetype (for binary fields with
attachment=True)

6. Add tests for the SVG upload cases and for the non-admin uploads.

[1] https://tools.ietf.org/html/rfc2397
[2] https://www.w3.org/wiki/SVG_Security

Closes #26635
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] web_editor: fix and improve AltDialog</title>
<updated>2018-09-13T06:17:09+00:00</updated>
<author>
<name>Jeremy Kersten</name>
<email>jke@odoo.com</email>
</author>
<published>2018-09-11T20:35:22+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=57decbbed6d3d8899b09a58361ae9b30d39a9c03'/>
<id>57decbbed6d3d8899b09a58361ae9b30d39a9c03</id>
<content type='text'>
Ref label
Add tooltip
Fix title from modal -&gt; before this commit, modal title was wrongly replaced by title of image :/

task-1878245
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ref label
Add tooltip
Fix title from modal -&gt; before this commit, modal title was wrongly replaced by title of image :/

task-1878245
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] web_editor: restore link dialog preview</title>
<updated>2018-09-12T08:56:46+00:00</updated>
<author>
<name>qsm-odoo</name>
<email>qsm@odoo.com</email>
</author>
<published>2018-09-11T16:06:38+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=39a441e9022e023d1b149fa4eec55534dbbac797'/>
<id>39a441e9022e023d1b149fa4eec55534dbbac797</id>
<content type='text'>
By default, all btn colors are suggested in the link dialog (alpha,
beta, gamma, delta, epsilon, link, primary, secondary, success, info,
warning and danger). In lots of themes (and the default one), primary
= alpha and secondary = beta, which led to having two suggestion with
the same apparent color.

A new system was introduced to automatically remove the duplicates...
but this system also removed the button preview as it considered it to
be a duplicate.

This commit also adapts the preview to BS4.

task-1878245
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
By default, all btn colors are suggested in the link dialog (alpha,
beta, gamma, delta, epsilon, link, primary, secondary, success, info,
warning and danger). In lots of themes (and the default one), primary
= alpha and secondary = beta, which led to having two suggestion with
the same apparent color.

A new system was introduced to automatically remove the duplicates...
but this system also removed the button preview as it considered it to
be a duplicate.

This commit also adapts the preview to BS4.

task-1878245
</pre>
</div>
</content>
</entry>
</feed>
