| Age | Commit message (Collapse) | Author |
|
|
|
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
|
|
* Adapt DOM selectors
* Refactore dialog XMLs to have odoo styling
* New editor options (background-position, ...)
* Various improvements
|
|
|
|
last char of the last line of the td
|
|
issue: the user select some line and keypress tab without indent, and the button indent doesn't work in table cell
|
|
issue: event does not a global var in firefox, and event is already prevented
|
|
Chrome on windows add few comment tags and insert unwanted span.
|
|
can be raise an exception
|
|
|
|
|
|
Depending of the location where the "Copying" happened, only text/plain
content could be available from the clipboard component.
So if no text/html was retrieved, we should fall back to plain text
pasting.
closes #9787
opw-657137
|
|
Summernote sometimes doesn't take into account HTML comment could be
embedded in the edited content, this can lead to issue since this
situation can happen in Odoo.
This commit patch the "isVisiblePoint" summernote's function to take
care of this issue.
opw-656332
|
|
Issue: click on an image or create a text selection and click on delete, the char after the selection is removed
|
|
|
|
|
|
|
|
|
|
(remove tr but not td alone)
|
|
|
|
The paste don't keep the architecture, usability team want to past the architecture but remove extra style and wrong node like span.
|
|
When using the tab key on non text node range, it could fail in some
given case.
Also when removing the last element of the table row, a correction was done in
d33086c03fc but if there was no element before the table (eg. the editor
is empty) an error could occur.
|
|
Tests for null range were not done in #8845, so in given case (where the
focus is not in the editor) we could get an issue.
The code for remembering the selection when clicking the editor
was made useful in d33086c03fc, but there was an edge case when
the editor itself was in a modal: then the selection would be lost.
This commit change the code as following:
1) restore the selected range if:
- the current selected range is not in the editable of the active editor
- there is a corresponding saved selected range or we are in an embeded
editor (and not in air mode as when editing the website)
2) save the selected range if:
- we don't restore the selection,
- the current selected range is in the active editor editable area
|
|
The range can be null if the focus is not in the editor at serveral
places.
closes #8845
|
|
Put all rng to r to have the same concept in the whole file as well as
in the summernote codebase.
closes #8845
|
|
On initialisation summernote call update method with oStyle.range is undefined.
The range can be undefined because the update is call before any selection and attach method from summernote call the update without range.
The method summernote_table_update try to use the range and raise an exception.
fix: Check if oStyle.range exits.
|
|
* some oversight when updating summernote with d33086c,
* fix style when replacing image with video
|
|
update summernote library up to revision:
https://github.com/summernote/summernote/commit/a0f26e300
see https://github.com/summernote/summernote/ for history
closes #8704
|
|
Revert till several issues are solved.
|
|
update summernote library up to revision:
https://github.com/summernote/summernote/commit/a0f26e300
see https://github.com/summernote/summernote/ for history
closes #8704
|
|
|
|
|
|
|
|
|
|
inside (although there are several selected child nodes)
This is forward-port of 96b33cdbcefcc6e656994a83534213cb6e87ca1c that
was stuck in limbo in forward-ports...
|
|
Due to `sale` rewrite (94716a3f14d929574c46ef165e4364d12a5903ed),
the commit 503820acb6d82a85c0c49ac26f7e7f8cd73851dd has been partially
ignored (in sale.order.line) and will be rewritten later using new-api.
|
|
|
|
|
|
|
|
the editable part is inside the table
|
|
|
|
for html field) and website
|