Commit Graph

19 Commits

Author SHA1 Message Date
Simone Orsi
19289c7577 web_ckeditor4: fix no re-init on form discard
When you hit "cancel" button or when you navigate away from the form,
for instance by clicking on the breadcrumb or on  "edit translations",
we have to remove the CKEditor widget.
It happens the same if you click on a main menu item
(eg: you are on sale order create form and you click on
Sales -> Quotations to get back to the tree view).

BUT then if you hit "create" Odoo's form machinery is not initializing
the widget anymore, which really sounds inconsistent.
If the widget is not initialized again it means that if CKEditor
got destroyed there's no way to re-init again.

Here we make sure that on create (no id on datarecord)
if the editor is not initialized yet we force it.
2021-11-15 12:36:54 -03:00
Simone Orsi
3970b971f3 web_ckeditor4: split default config 2021-11-15 12:36:54 -03:00
oca-travis
d029be701f [UPD] Update web_ckeditor4.pot 2021-11-15 12:36:54 -03:00
George Daramouskas
e052085420 [PORT] Port web_ckeditor4 to 10.0 2021-11-15 12:36:54 -03:00
Pedro M. Baeza
f8fcfbbf2a [MIG] Rename manifest files 2021-11-15 12:36:54 -03:00
Pedro M. Baeza
cf72f903e2 [MIG] Make modules uninstallable 2021-11-15 12:36:54 -03:00
Stéphane Bidoul
933dc44ecb [UPD] prefix versions with 8.0 2021-11-15 12:36:54 -03:00
StefanRijnhart
1cdc1599e5 [FIX] Now that we actually destroy editors, we need another check for their currentness
Fixes #176
2021-11-15 12:36:54 -03:00
Stefan Rijnhart
10374d0677 [IMP] OCA conventions 2021-11-15 12:36:54 -03:00
Stefan Rijnhart
7f962b709e [FIX] Include patch to solve referencing the editor's iframe which
is cleaned up untimely in x2many popups.

https://github.com/ckeditor/ckeditor-dev/pull/200/files
2021-11-15 12:36:54 -03:00
Stefan Rijnhart
c48629412a [FIX] Destroy the editor properly. This prevents errors like
'this.getWindow(...).$ is undefined' in Firefox after closing
a popup containing an editor instance.
was opened in a popup window.
2021-11-15 12:36:54 -03:00
Holger Brunn
584d23d6cd [IMP] monkey patch lxml's html cleaner
in order to allow image data urls
2021-11-15 12:36:54 -03:00
Alexandre Fayolle
d684af8448 Add OCA as author of OCA addons
In order to get visibility on https://www.odoo.com/apps the OCA board has
decided to add the OCA as author of all the addons maintained as part of the
association.
2021-11-15 12:36:54 -03:00
Pedro M. Baeza
8825c1fc05 [FIX] Icon path 2021-11-15 12:36:54 -03:00
Stefan Rijnhart
809a859f02 [UPD] Update to ckeditor 4.4.6 2021-11-15 12:36:54 -03:00
Stefan Rijnhart
a33bce29e9 [PRT] Odoo integration of web_ckeditor4 2021-11-15 12:36:53 -03:00
Stefan Rijnhart
c691a83598 [PRT] Move ckeditor4 out of unported and update with latest version 7 changes 2021-11-15 12:36:17 -03:00
Holger Brunn
1e06a099da [FIX] accessing undefined variable 2021-11-15 12:35:08 -03:00
Holger Brunn
e9ecac16be [ADD] web_ckeditor4 2021-11-15 12:35:08 -03:00