summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/lib/summernote/src
AgeCommit message (Collapse)Author
2018-06-14[MERGE] forward port branch saas-15 up to a53bea49fe4Christophe Simonis
2018-06-14[MERGE] forward port branch 9.0 up to 90165e2d96aChristophe Simonis
2018-06-13[FIX] web_editor: link don't duplicate child textNicolas Lempereur
If we applied a link eg. on: ``` <span>hello <b>world</b></span> ``` The system actually gets the "label": hello worldworld because there is 3 nodes: text node: hello element node: `<b>world</b>` text node: world Also since "hello worldworld" is different than "hello world", instead of just keeping existing nodes and adding the link, the system would replace the selected range by: `<span><a>hello worldworld</a></span>' instead of: `<span><a>hello </a><b><a>world</a></b></span>` This commit ignores element nodes when creating a new link, since when getting the label of the link from the selection, only the text nodes insides the element nodes have any interest. There was a second issue because if we had: ``` <i><a href="hello">world</a></i>! ``` and tried to put a link over "world!", the code would decide: "world" is inside a link so we will just update that link. Thus we would get: ``` <i><a href="hello">world!</a></i>! ``` instead of: ``` <i><a href="hello">world</a></i><a href="hello">!</a> ``` opw-1848351 closes #25187
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 saas-15 up to 810603f4ef0Christophe Simonis
2018-05-02[MERGE] forward port branch 9.0 up to 532b11ce415Christophe Simonis
2018-04-27[FIX] web_editor: update summernote copy-paste featureqsm-odoo
The copy-paste feature of summernote was messy and led most of the time to breaking the template you were trying to edit. While it is difficult to solve as it mostly comes from the lib itself and that the lib is in a complicated state as Odoo had to overridde part of its internal code for its own purposes, this commit hopes to solve the problem by updating only the copy-paste feature to the latest summernote version. Of course, as summernote changed a lot meanwhile, it was not possible to just take the up-to-date summernote file. This commit refactores the up-to-date summernote clipboard code so that it fits the old summernote version Odoo is using. Note: the main problems occurred while using Windows/Mac and not Linux. opw-1837818
2017-10-17[MERGE] forward port branch saas-15 up to 8d0942380b5Christophe Simonis
2017-10-17[MERGE] forward port branch 9.0 up to d5c0cae60b5Christophe Simonis
2017-10-16[FIX] web_editor: do not break <p/> when pasting a <p/> elementqsm-odoo
This fixes a bug when pasting text in a paragraph, it was always creating a new paragraph for no reason.
2017-05-04[FIX] web_editor: prevent crash when publishing a payment in edit modeChristophe Matthieu
When updateStyleInfo is called, the options is not necessarily on editable area (eg: when update the toolbar for image)
2016-09-22[MERGE] forward port branch saas-12 up to b1b700aChristophe Simonis
2016-09-22[MERGE] forward port branch saas-11 up to 6854887Christophe Simonis
2016-09-21[FIX] mass_mailing: can't change color button snippet when edit mass mailingChristophe Matthieu
2016-08-19[IMP] web_editor: come back to a more regular summernote colorpickerqsm-odoo
Splitting the summernote colorpicker into bg colorpicker and foreground colorpicker seems to have been a bad idea as people tend to click on the recent color button thinking it will open a dropdown. This commit keeps the design that had been decided for colorpicker template and do not change the "background-color" snippet option. However, the colors for background and foreground text changes are now displayed in an unique dropdown again, with reviewed style. + adapt the rte tour
2016-07-05[IMP] web_editor: change image edition toolbarqsm-odoo
* Move description button at the end of the toolbar * Add an "auto" state button for the image width (alongside 100%, 50% and 25%) (when these last three are unchecked, the auto button becomes checked).
2016-06-23Revert "[FIX] web_editor: test jinja content to load editor in codeview"Christophe Matthieu
This reverts commit f38f8930f0436a40f675fa1d054a9d46f550d440. Revert for internal choice. Odoo want to use qweb in template and remove jinja support on next version. If users want to use jinja they can change the view to use text widget instead of html widget.
2016-06-22[FIX] web_editor: test jinja content to load editor in codeviewChristophe Matthieu
The preview change the content because the browser try to fix the dom. If a user use jinja and activate the preview, the jinja code is (re)moved by the browser and broke the template.
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-01-20[FIX] web_editor: merge span when paste, only if no content between tagsChristophe Matthieu
opw-667263
2016-01-20[FIX] web_editor: remove empty table ligne when paste contentChristophe Matthieu
2016-01-14[FIX] web_editor: paste simple text must wrap first line by p and remove ↵Christophe Matthieu
unless font
2016-01-11[FIX] web_editor: clean pasted dom and avoid crappy domChristophe Matthieu
Chrome on windows add few comment tags and insert unwanted span.
2015-10-02[FIX] web_editor, mass_mailing: summernote oversight and videoNicolas Lempereur
* some oversight when updating summernote with d33086c, * fix style when replacing image with video
2015-09-30[FIX] web_editor: useless margin for air editor in translationNicolas Lempereur
2015-09-29[IMP] web_editor: rename and delete summernote filesNicolas Lempereur
2015-09-29[IMP] web_editor: update summernote up to 2015-08-31Nicolas Lempereur
update summernote library up to revision: https://github.com/summernote/summernote/commit/a0f26e300 see https://github.com/summernote/summernote/ for history closes #8704
2015-09-25Revert "[IMP] web_editor: update summernote up to 2015-08-31"Nicolas Lempereur
Revert till several issues are solved.
2015-09-25[WIP] web_editor: rename and delete old summernote filesNicolas Lempereur
2015-09-25[IMP] web_editor: update summernote up to 2015-08-31Nicolas Lempereur
update summernote library up to revision: https://github.com/summernote/summernote/commit/a0f26e300 see https://github.com/summernote/summernote/ for history closes #8704
2015-08-24[MERGE] forward port of branch saas-6 up to e16d495Christophe Simonis
2015-07-22[MERGE] forward port of branch saas-6 up to 63e92cbChristophe Simonis
2015-07-10[FIX] summernote: insert a p tag when try to insert a br with insertNode ↵Christophe Matthieu
method, if the editor is inside a p, li, h1...
2015-07-10[FIX] web_editor: summernote: with firefox error to record an undo for the ↵Christophe Matthieu
normal instance of the editor because global variable 'event' does not exists.
2015-07-10[FIX] summernote: wrong history managment fixed to use in normal field editorChristophe Matthieu
2015-07-10[FIX] web_editor: summernote: editor fail if at least 10 instance of ↵Christophe Matthieu
summernote are create (wrong split to get sumernote instance id)
2015-07-10[IMP] web_editor: move summernote & nearest lib from websiteChristophe Matthieu