web/web_ckeditor4
Simone Orsi 9f28948593 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.
2019-03-26 13:16:25 +01:00
..
i18n [UPD] Update web_ckeditor4.pot 2018-10-31 13:32:55 +00:00
models [PORT] Port web_ckeditor4 to 10.0 2018-10-31 14:04:04 +01:00
static web_ckeditor4: fix no re-init on form discard 2019-03-26 13:16:25 +01:00
templates web_ckeditor4: split default config 2019-03-25 16:27:17 +01:00
README.rst [PORT] Port web_ckeditor4 to 10.0 2018-10-31 14:04:04 +01:00
__init__.py [IMP] monkey patch lxml's html cleaner 2015-03-04 10:00:04 +01:00
__manifest__.py web_ckeditor4: split default config 2019-03-25 16:27:17 +01:00

README.rst

.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
   :target: https://www.gnu.org/licenses/agpl
   :alt: License: AGPL-3

===================
CKEditor web widget
===================

This module introduces the text_ckeditor4 widget that when used allows the user
to use specific features of ckeditor.

Usage
=====

To use this module, you need to:

#. Go to ...

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
   :alt: Try me on Runbot
   :target: https://runbot.odoo-community.org/runbot/162/10.0

Known issues / Roadmap
======================

* This version of CKEditor contains a patch that prevents the referencing of
  the editor's iframe if it has already been cleaned up by Odoo. In 8.0, this is
  the case if the editor was created in an x2many popup. The patch was proposed
  as https://github.com/ckeditor/ckeditor-dev/pull/200

Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/OCA/{project_repo}/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smash it by providing detailed and welcomed feedback.

Credits
=======

Images
------

* Odoo Community Association: `Icon <https://odoo-community.org/logo.png>`_.

Contributors
------------
* Holger Brunn <hbrunn@therp.nl>                                               
* Stefan Rijnhart <stefan@therp.nl>                                            
* George Daramouskas <gdaramouskas@therp.nl> 

Do not contact contributors directly about support or help with technical issues.

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

To contribute to this module, please visit https://odoo-community.org.