summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
AgeCommit message (Collapse)Author
2018-06-07[MERGE] forward port branch saas-11.3 up to c00df146547Christophe Simonis
2018-06-06[MERGE] forward port branch saas-11.2 up to c834c0f5879Christophe Simonis
2018-06-06[MERGE] forward port branch 11.0 up to e7aff3775fbChristophe Simonis
2018-06-06[FIX] mail, web_editor: allow tel links in email templates (#24926)Tomas Alvarez
Before this commit: links like `tel:+1-555-555-5555` were being replaced both in javascript (prefixing `http`, when using the summernote editor) and python (prefixing the base url, when they were added directly to the template). After this commit: the replacement is avoided on links with `tel` scheme. This is related to commit: 8b97a39
2018-05-30[MERGE] forward port branch saas-11.3 up to 53300648edeChristophe Simonis
2018-05-29[MERGE] forward port branch saas-11.2 up to a2f275dfc48Christophe Simonis
2018-05-29[MERGE] forward port branch 11.0 up to 4ea3838d895Christophe Simonis
2018-05-29[MERGE] forward port branch saas-15 up to 6be9593a0c0Christophe Simonis
2018-05-29[MERGE] forward port branch saas-14 up to 459efb42765Christophe Simonis
2018-05-29[MERGE] forward port branch 10.0 up to 2288a89564cChristophe Simonis
2018-05-29[MERGE] forward port branch 9.0 up to ea0fcd52d92Christophe Simonis
2018-05-29[MERGE] forward port branch saas-11.3 up to 37eed7c509fChristophe Simonis
2018-05-28[FIX] web_editor: properly save a t-field in a t-ignore environmentqsm-odoo
When a t-field element was in an editable t-ignore environement, modifying it was leaving the edit mode style attached to it. This was because of: 1) When the t-field element was changed, it was marked dirty but also its parent editable container. Fixing this, only solves the case where only the t-field (and not one of its neighbors) is changed but it was worth fixing anyway. 2) Before saving an element, the potential 'o_editable' and summernote classes were not removed of its descendant and were thus saved. Bug found with task-38069, merged in stable as it might occur there too.
2018-05-25[FIX] portal, web_editor: keep BS 'img-responsive' *opt-in*qsm-odoo
Bootstrap 'img-responsive' behavior was opt-in for a reason but commit https://github.com/odoo/odoo/commit/f79b00c3b71e02f73537cb17285a6902fc0906b5 tried to defy that anyway. This would break existing client databases ... or at least our odoo.com. This commit adds the img-responsive class for *new* *editor* images (still with inline-block display), preventing breaking libraries or custom (prod) images.
2018-05-25[MERGE] forward port branch saas-11.2 up to 58e35522468Christophe Simonis
2018-05-23[IMP] web_editor: highlight the selected image/iconKishan Gajjar
When we selected an image/icon, there was no visual feedback explaining to the user that the image/icon had been selected (except for images on chrome). task-35020 Closes https://github.com/odoo/odoo/pull/24160
2018-05-22[FIX] web_editor: avoid traceback when open img editorJeremy Kersten
In some case, (e.g.: demo data), datas_fname is undefined and match of undefined will crash and block the modal to be opened. Uncaught TypeError: r.datas_fname.match is not a function
2018-05-18[IMP] web_editor: allow cropping content imagesKishan Gajjar
2018-05-14[MERGE] forward port branch saas-11.2 up to e70e5b6cf33Christophe Simonis
2018-05-14[MERGE] forward port branch 11.0 up to 2787de8c68fChristophe Simonis
2018-05-14Revert "[FIX] web_editor: adapt test"Christophe Simonis
Was weirdly working in browser... This reverts commit fb18de745c10bb6373eb3f08ada3458f09c669b8.
2018-05-14[FIX] web_editor: adapt testChristophe Simonis
2018-05-14[FIX] web_editor: correct js code.Christophe Simonis
Oversight of previous forward-port
2018-05-14[MERGE] forward port branch saas-15 up to d818b516c14Christophe Simonis
2018-05-14[MERGE] forward port branch saas-14 up to 5274a620374Christophe Simonis
2018-05-14[MERGE] forward port branch 10.0 up to 7b1362ac557Christophe Simonis
2018-05-14[FIX] web_editor: ignore range error on RestrictedNicolas Lempereur
In firefox, if we have a range on eg.: `<input type="file">` and we tabulate to get to it, we have the range over: `<button type="button" tabindex="0">Browse…</button>` which seems to be a "virtual" element inside the `<input/>` but this magic element is "Restricted" and causes error such as: `Permission denied to access property "nodeName"` So this fix ignore errors when getting a range from current selection on keyup. opw-1819279 closes #24524
2018-05-11[FIX] web_editor: inline space in source codeNicolas Lempereur
Backport of 57f7c681062f07002312e91d79d02b2b1b59d9fe
2018-05-09[MERGE] forward port branch saas-11.2 up to aae54ecc159Christophe Simonis
2018-05-08[MERGE] forward port branch 11.0 up to f2e105eeca4Christophe Simonis
2018-05-09[FIX] web_editor: optimize big mail transcodingNicolas Lempereur
The browser may throw an error when a big mail such as one with hundreds thousands of tags is being transformed to have a style more compatible with mail clients. The error would be: "Uncaught RangeError: Maximum call stack size exceeded" This happens in jquery because we hare too many nodes (there is an ongoing issue at https://github.com./jquery/sizzle/issues/403) so this commit replace that part by a DFS traversal over DOM nodes. There was also an issue that not having the option "style-inline" would still cause some style code to be ran albeit it was intended not to be solved in 55c7d2d5b00. opw-1841107 closes #24550
2018-05-08[FIX] web_editor: drag and dropNicolas Martinelli
Commit 6494f511718 introduces an access token to read images inside an email. This avoids access errors when accessing the email through a proxy (e.g. Gmail). That implies that all images are added as attachments. When going through the usual media dialog, the form is submitted to action '/web_editor/attachment/add', creating the attachment. However, the copy or the drag and drop of an image completely fails. Indeed, the same method `_onImageUpload` is called, but with a completely different argument type: `attachments` is a `FileList`, not a list of attachments. To solve this, we only call `_onImageUpload` on a the custom `onUpload` callback, which is not triggered during a drag and drop or a copy. Any image included thanks to these methods will be post-processed in the `create` method of `mail.message` (`base64_to_boundary`). Unfortunately, it's not possible to simulate an actual drag and drop or a copy, so we cannot add a test. opw-1840237 opw-1840411
2018-05-02[MERGE] forward port branch 11.0 up to 521414b1c10Christophe Simonis
2018-05-02[MERGE] forward port branch saas-15 up to 810603f4ef0Christophe Simonis
2018-05-02[MERGE] forward port branch saas-14 up to 55ce6aff10bChristophe Simonis
2018-05-02[MERGE] forward port branch 10.0 up to 79bbd1dcb8cChristophe Simonis
2018-05-02[FIX] web_editor: disable button when html field loadingLucas Perais (lpe)
Commit bed33e1ca241c9cb0ff22897dbe60af476d59590 forgot to include the case where the html field is in a modal This commit accounts for that case closes #24500
2018-04-26[FIX] web_editor: firefox remember CTRL+A selectionNicolas Lempereur
In firefox the range when doing CTRL+A is the first level content of the contenteditable element, but this was not taken into account when "remembering" the range after clicking on buttons or features of the editor. In chrome the selection begin with the first displayed element (so it may not be a direct child of the editable and is taken into account in the code). opw-1824017 closes #24424
2018-04-24[MERGE] forward port branch saas-11.3 up to ec5e27bb7ccChristophe Simonis
2018-04-23[MERGE] forward port branch saas-11.2 up to 7113b70762dChristophe Simonis
2018-04-23[MERGE] forward port branch 11.0 up to 3ab25b60bc5Christophe Simonis
2018-04-23[MERGE] forward port branch saas-15 up to cae950e8262Christophe Simonis
2018-04-23[FIX] web_editor: wrong display of the link buttons (btn) in outlook 2013Christophe Matthieu
The css generates all the attributes separately and not in simplified form. In order to have a better compatibility we simplify the css tags. e.g. border-left-style: none; border-bottom-s .... will be simplified in border-style = none We convert the link.btn into a table to have a good rendering in outlook, and revert the change when the user edit the content.
2018-04-23[FIX] web_editor: wrong display for td in Apple MailChristophe Matthieu
the td are displayed with wrong background color if the td tag is empty
2018-04-23[MERGE] forward port branch saas-14 up to 2bc3fd89f22Christophe Simonis
2018-04-23[MERGE] forward port branch 10.0 up to 2d12ae3202eChristophe Simonis
2018-04-23[MERGE] forward port branch 9.0 up to c9e7433c237Christophe Simonis
2018-04-23[FIX] web, web_editor: restore report edition featureqsm-odoo
Since 11.0, reports could not be edited at all anymore. This is due to the fact the editor files were refactored but the report feature is not correctly organized since it was merged with the 'web' app. Indeed, the 'web' app is still calling files and assets of the 'web_editor' app which is not a dependency (but it is working as 'web_editor' is auto-installed with 'web'). opw-1826599 opw-1834971 Closes https://github.com/odoo/odoo/issues/24034
2018-04-23[FIX] web_editor: prevent crash on outside-iframe clickqsm-odoo
The editor is performing text selection check when clicking on the window. However, when clicking outside the iframe an editor is running in, a crash may occur as the editor was trying to check a range outside of its environment (the iframe). Related to opw-1837818
2018-04-19[MERGE] forward port branch saas-11.3 up to 204935119d1Christophe Simonis