summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
AgeCommit message (Collapse)Author
2016-06-14[IMP] base ir.qweb: compile template (and use ast) to improve rendering speedChristophe Matthieu
* The compiled templates are cached per user, lang, inherit context values * ir.ui.fields: attributes method return an dict, and record_to_html return only the content value of the field * all rendered text use build_text and all attributes use build_attribute * t-esc-options is removed and replace by format_value method * AssetsBundle receive the list files and remains
2016-06-13[REM] web: Remove GTK icons and replace them by Font-awesomeJainik Patel
2016-05-26[FIX] web_editor: display background color to translateChristophe Matthieu
2016-05-24[FIX] web_editor: snippet colorpicker optionqsm-odoo
When going over the colorpicker when no bg-* class was selected yet, the bg-undefined class was added on the snippet. Also, when clicking on the reset button, the bg-* class was removed but the selected button in the colorpicker was not unselected.
2016-05-13[MERGE] forward port of branch saas-9 up to 087729fChristophe Simonis
2016-05-13[MERGE] forward port of branch 9.0 up to dcab356Christophe Simonis
2016-05-13[FIX] web_editor: video - allow to add video from unknown sourceJeremy Kersten
There are not cat... but you cannot know all the existing website in the world... So, have faith in the user ! To do: allow to customize size or get it from iframe provided
2016-05-12[FIX] web_editor: scroll and editing menu modalNicolas Lempereur
The class modal-open on body tag allow to scroll on the modal content which is useful if the content is taller than the window viewport. When closing the modal, this class is removed but there may be another modal open on which we will not be able to scroll to view buttons/content if too big. This commit check if a modal is still opened after closing an editor modal and in the affirmative add back the modal-open class. opw-674475 note : was already present in 8.0 with ec47493, it is also present for web.Dialog (but the modal of the editor do not inherit from web.Dialog)
2016-05-02[FIX] web_editor: backend colorpicker in editorqsm-odoo
The web_editor.colorpicker defines a series of color buttons which toggle the bg-* and text-* classes. The problem is that themes can define new buttons whose bg-* and text-* classes only exist in the frontend. So these buttons should not be displayed in the backend. Only solution for the current implementation is to add this ugly rule (in this backend file) which hides every button and redisplayed the default ones. This fix is temporary and has to be improved in next versions.
2016-05-02[FIX] web_editor: backend editor styleqsm-odoo
The editor had been restyled thinking its DOM structure was the same in every context. The problem is that the message composer editor DOM structure is different. So, some important style like button icons were missing in this context.
2016-04-25[MERGE] forward port of branch saas-9 up to 4d337f7Christophe Simonis
2016-04-25[MERGE] forward port of branch 9.0 up to ac7beb3Christophe Simonis
2016-04-25[FIX] web_editor: fix svg issueAdrien Dieudonne
className should return a string but svg node returns an object
2016-04-21[MERGE] Forward-port 9.0 up to 74d8cbc190d1a93ef699ee254b1efbc88d2a1e26Olivier Dony
2016-04-21[FIX] web_editor: save translation values as HTML or XML fragmentRaphael Collet
The translation value is given as an HTML fragment. It is converted to a valid XML fragment if the translation's field requires it.
2016-04-06[FIX] web_editor, website: snippet handles and add job offerqsm-odoo
* Bad forward port of saas-9 created a bug where the snippet handles were wrongly positioned. * The add job offer button did not work as the modal was marked to dismiss itself on click (and because this button has not any handler attached to it; it's the only real link amongst the add buttons).
2016-04-01[MERGE] forward port of branch saas-9 up to f4d1adcChristophe Simonis
2016-04-01[MERGE] forward port of branch saas-7 up to 2d2028aDenis Ledoux
2016-03-30[FIX] web_editor: Cannot read property 'left' of undefinedNicolas Lempereur
This issue happen for example on a full runbot when clicking with shift + key pressed on a sale order not in an editable. We can see that initial_data.rect is only defined in mousedown when the click target is inside an editable block, hence it could lead to an issue otherwise. closes #11527
2016-03-30[IMP] web_editor: inline buttons shown over topbarNicolas Lempereur
Before 9.0 web_editor separation in 8c55904, some style would make inline button be visible over topbar. This commit reintroduce that and also make the margin over the inline editor content a little bigger (so the inline buttons on the top of a content will cover a little less the topbar). closes #11526 opw-671649
2016-03-25[FIX] web_editor: two editor and image bar buttonsNicolas Lempereur
Some image functionalities of the inline summernote would only take the first of multiple editor into account when selecting the targeted image of an image button action (image size, image padding, ...). This commit select the appropriate editor given the current editable. closes #11474 opw-668861
2016-03-24[MERGE] forward port of branch saas-9 up to 59d3f63Christophe Simonis
2016-03-16[MERGE] forward port of branch saas-7 up to revision ↵qdp-odoo
71d16a369e01515aac988c62371d70549d3b5294
2016-03-14[FIX] web: various small issues in form view onchange/one2manyChristophe Matthieu
- Issue: Edit sale.order form view, add new line, change product who have taxes and click quickly on save (with slow network) => error message. Because some deferreds are lost. - reduce number of reads and onchange for x2m widgets - remove before_save method and use commit_value (the issue was that if the before_save and the change trigger an onchange, the onchange deferred is not checked before saving the content.
2016-03-10[FIX] web_editor: don't display the html content fieldChristophe Matthieu
issue: message, click on a record, return to the list view, click on an other record => nothing desplayed. opw-671047
2016-03-09[FIX] web_editor: leave block after two enterNicolas Lempereur
Before 3959afc the `node` tested would be the selection containing node, but since then it may have been a `<br/>` which has some damaging effects: now entering double enter at the end of a list, quote or code block doesn't end this block. Testing the use case corrected by 3959afc, the said change seems to have no effect so this commit reverts it. opw-667618
2016-03-03[FIX] web_editor: can't use mako/jija if remove space to prettify htmlChristophe Matthieu
Addapt html method to prettify the html code and keep mako structures. opw-668409
2016-03-03[FIX] web_editor: image sizeNicolas Martinelli
Make sure to create an image of a size larger than zero. A size of zero will generate a traceback.
2016-03-01[FIX] web_editor: bg-* bootstrap colorsqsm-odoo
Wrong values for background-colors for bg-* classes of web_editor.
2016-02-26[FIX] web_editor: bootstrap colors (text-, bg-)qsm-odoo
Bootstrap handles the primary color in a different way than the other colors. So to not break the backend UI, the o-create-color-classes mixin has to consider this difference. Notice that colors management should be further improved in the future.
2016-02-25[FIX] web(_editor): qunit testsqsm-odoo
* Correct qunit template assets * Delete useless template which broke qunit qweb inheritance
2016-02-24[FIX] web*: toursqsm-odoo
Selector changes + No need to open the snippet panel anymore.
2016-02-24[REF] web_editor,website,mass_mailing: JS/XML updateqsm-odoo
* Adapt DOM selectors * Refactore dialog XMLs to have odoo styling * New editor options (background-position, ...) * Various improvements
2016-02-24[REF] web,web_editor,website,report,mass_mailing,mail: LESSqsm-odoo
* Convert some CSS to LESS * Split/Join LESS files * Remove duplicates between website and web_editor * UI improvements * Allow simple customizations thanks to LESS var&mixins for website
2016-02-24[REF] website,web_editor: complete restylingstefanorigano
2016-02-10[MERGE] forward port of branch saas-7 up to cab5c48Christophe Simonis
2016-02-08[FIX] web_editor: don't convert style into class by default. Only if use ↵Christophe Matthieu
style-inline (because very poor performance for sale.order form view because contains very crappy dom in website_description field)
2016-02-04[FIX] web_editor: minor tweaks IE11Nicolas Lempereur
In IE11 the values can be not string (for example a number and so not have .indexOf method), but then there will no be !important bits and we can just ignore this feature (which check if an overriding rule has an !important flag). There was another edge case when getting a "" set style, we get undefined. opw-667917
2016-02-02[MERGE] forward port of branch saas-8 up to 2611a81Christophe Simonis
2016-01-28[FIX] web_editor: enter keydown create new td only if the caret is on the ↵Christophe Matthieu
last char of the last line of the td
2016-01-28[FIX] web_editor: remove style attribute if emptyChristophe Matthieu
2016-01-28[FIX] computed html field should not have "note-editable" classChristophe Matthieu
opw-660810
2016-01-27[MERGE] forward port of branch saas-8 up to 7e44ddcChristophe Simonis
2016-01-20[FIX] web_editor: reduce the min-size of the html previewChristophe Matthieu
opw-660810
2016-01-20[FIX] web_editor: can indent table cell (with button and tab)Christophe Matthieu
issue: the user select some line and keypress tab without indent, and the button indent doesn't work in table cell
2016-01-20[FIX] web_editor: firefox can have undefined value for style and broke ↵Christophe Matthieu
inliner feature
2016-01-20[FIX] web_editor: use iframe only for html widget with style-inline modeChristophe Matthieu
2016-01-18[FIX] web_editor: inliner don't apply color when background-colorChristophe Matthieu
2016-01-18[FIX] web_editor: don't add double p tag at the begin of the documentChristophe Matthieu
2016-01-18[FIX] web_editor: inliner take in care the '!important' attributesChristophe Matthieu