Commit Graph
30 Commits
Author SHA1 Message Date
Christophe Simonis a9abf18125 [FIX] web_editor: sould not delete de tag container when select all text inside (although there are several selected child nodes)
This is forward-port of 96b33cdbce that
was stuck in limbo in forward-ports...
2015-08-28 19:16:03 +02:00
Christophe Simonis edeceba7df [MERGE] forward port of branch saas-6 up to 7a768a4
Due to `sale` rewrite (94716a3f14),
the commit 503820acb6 has been partially
ignored (in sale.order.line) and will be rewritten later using new-api.
2015-08-28 15:07:16 +02:00
David Monjoie b322536aa6 [FIX] web_editor: fixed typos introduced by 88c0ce0
It seems this.BuildingBlock was changed to this.buildingBlock
by 8c559044a5. Care should be
taken when forward porting code using this.BuildingBlock.
2015-08-26 16:01:19 +02:00
Christophe Matthieu 8eb8a982f9 [FIX] web_editor: clean_for_save all dirty options
Clean for save was only called on o_dirty nodes but o_dirty is added only on o_editable nodes.
Could use a simple jQuery selector '.o_dirty, .o_dirty *' but need to improve speed for user experience.
2015-08-26 16:01:18 +02:00
Christophe Simonis 88c0ce0692 [MERGE] forward port of branch saas-6 up to e16d495 2015-08-24 18:19:19 +02:00
Christophe Matthieu 41e730cbfa [IMP] web_editor: add document into the media editor
User can upload documents and add the link in the page to download it.
2015-08-21 22:06:52 +02:00
Christophe Matthieu 6baf611df1 [IMP] web: create generic controller '/web/content' and '/web/image'
Replace deprecate controllers like /web/binary/image, /web/binary/saveas...
Use ETag for all content with 'unique' option to cache the content if the content is never changed.
2015-08-21 22:06:52 +02:00
Christophe Matthieu f434c475d4 [FIX] web_editor: can't save backend translation with field html 2015-08-21 16:15:02 +02:00
Christophe Simonis 73e652818b [MERGE] forward port of branch saas-6 up to 8d95f6d 2015-08-15 16:57:35 +02:00
Christophe Simonis 47f6b1bb32 [MERGE] forward port of branch saas-6 up to 081f21e 2015-08-06 17:44:09 +02:00
Christophe Matthieu 4474b5ac70 [IMP] web_editor: display not found snippets template warning message 2015-08-05 10:31:15 +02:00
Mohammed Shekha d434500ec8 [FIX]web_editor: Fixed the issue of firefox not able to enumerate on cssRules, it is due to Cross domain security policy of firefox, used try catch, so that if there is cross domain css then skip it, it should not break the system, atleast it should work for same domain css, cross domain css should skipped 2015-07-31 10:15:56 +02:00
Christophe Matthieu 5a4c8998e7 [FIX] web_editor: _.find break if the value is a space
Some classes are not checked. Compact values to remove empty string classes.
2015-07-31 10:08:58 +02:00
Christophe Matthieu 374436bff8 [FIX] web_editor: on firefox css rules doesn't have key with hyphen
On save (eg: in mass_mailing), the style contains 'undefined' values
2015-07-31 10:08:58 +02:00
Christophe Matthieu eb50e66d62 [FIX] web_editor: on firefox display snippets in one row
display snippets in one row instead of two rows
2015-07-31 10:08:58 +02:00
Christophe Simonis e182f19694 [FIX] *: various bug were introduced during last forward-port 2015-07-22 18:33:04 +02:00
Christophe Simonis 2cf91d16a5 [MERGE] forward port of branch saas-6 up to 63e92cb 2015-07-22 16:17:54 +02:00
Christophe Matthieu 264bb780a1 [IMP] web: web modules return readable logs and phantomjs logs
boot.js log:

* ``Missing dependencies``:
  These modules do not appear in the page. It is possible that the JavaScript
  file is not in the page or that the module name is wrong
* ``Failed modules``:
  A javascript error is detected
* ``Rejected modules``:
  The module returns a rejected deferred. It (and its dependent modules) is not
  loaded.
* ``Rejected linked modules``:
  Modules who depend on a rejected module
* ``Non loaded modules``:
  Modules who depend on a missing or a failed module
2015-07-22 12:15:25 +02:00
Christophe Matthieu 71732dceb6 [IMP] web: module can be asynchronous loaded if it return a deferred
Each module can return a deferred. In that case, the module is marked as loaded
only when the deferred is resolved, and its value is equal to the resolved value.
The module can be rejected (unloaded). This will be logged in the console as info.

Remove if_dom_contains from the website, the modules return a rejected deferred if
the DOM doesn't contains the seleted values.
2015-07-22 12:15:24 +02:00
David Monjoie df9725df26 [IMP] web_editor,website: added scalable margins in less
The original commit by fka used to define less variables like this:
@px-4: 4px
@px-8: 8px

The goal was to be able to change the margin values in
media queries for smaller screens.
However, as the less is only compiled once in css, those
variables didn't really help as you couldn't redefine them
from inside a media query and have the less magically
reassign the margins on the fly.

I created less helper functions to be able to easily redefine
the margins for smaller screens from inside media queries.

The task also required to replace the nbsp in the html by the
newly created mr and ml classes.

This is also the first phase of the sass -> less transition.
2015-07-20 15:00:24 +02:00
Aaron Bohy c22d75bdc5 [FIX] web_editor: restrict scope of css rules
within the editor, to prevent styling every tables in Odoo.
2015-07-17 09:53:23 +02:00
Christophe Matthieu 087fd6942b [IMP] web_editor: add test translator 2015-07-10 17:00:15 +02:00
Christophe Matthieu ff58a961e8 [IMP] web_editor: add modal to translate node attributes 2015-07-10 17:00:14 +02:00
Christophe Matthieu 89d620e4eb [IMP] web_editor: translations with the same id are edited at the same time 2015-07-10 17:00:14 +02:00
Christophe Matthieu 7f29771833 [FIX] summernote: wrong history managment fixed to use in normal field editor 2015-07-10 17:00:14 +02:00
Christophe Matthieu 9221eb5b6d [FIX] web_editor: summernote: don't create display button to edit table if the editable part is inside the table 2015-07-10 17:00:13 +02:00
Christophe Matthieu f17d6cb6d9 [FIX] web_editor: summernote: don't create a p tag in empty o_editable if it's a style tag (eg: strong) 2015-07-10 17:00:13 +02:00
Christophe Matthieu c1f39d0ca7 [IMP] web_editor: create a css for editor and can be used without bootstrap.css and without change with themes 2015-07-10 17:00:13 +02:00
Christophe Matthieu 9665882fba [IMP] web_editor: adapt css, js and xml to use web_editor 2015-07-10 17:00:12 +02:00
Christophe Matthieu 8c559044a5 [IMP] web_editor: split website into web_editor (to use editor in backend for html field) and website 2015-07-10 17:00:11 +02:00