mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG] web_widget_ckeditor: Migration to 14.0
Renamed module name from web_ckeditor4 to web_widget_ckeditor. It now uses CKEditor5.
This commit is contained in:
committed by
Justine Doutreloux
parent
0bad4fd3b9
commit
7622bd7129
32
web_widget_ckeditor/readme/CONFIGURE.rst
Normal file
32
web_widget_ckeditor/readme/CONFIGURE.rst
Normal file
@@ -0,0 +1,32 @@
|
||||
By default, this module will replace the original `html` wysiwyg field with CKEditor.
|
||||
The original `html` widget will be renamed as `html_odoo`.
|
||||
|
||||
If you only want to use `ckeditor` on specific views, you can disable the `html` widget
|
||||
override by archiving the `web_widget_ckeditor.assets_backend_field_html_override` view.
|
||||
|
||||
When the global `html` widget replacement is disabled, `ckeditor` has to be explicitly
|
||||
set on the desired `ir.ui.view`:
|
||||
|
||||
.. code-block:: xml
|
||||
|
||||
<field name="description_html" widget="ckeditor" />
|
||||
|
||||
|
||||
The CKEditor toolbar can be customized with an `ir.config_parameter`. To do so,
|
||||
please create a parameter named `web_widget_ckeditor.toolbar`, and set the desired
|
||||
toolbar items using either `,`, `space` or `newline` as separators.
|
||||
|
||||
.. code-block::
|
||||
|
||||
heading
|
||||
| bold italic underline removeFormat
|
||||
| fontSize fontColor fontBackgroundColor
|
||||
| bulletedList numberedList alignment
|
||||
| outdent indent pagebreak
|
||||
| link imageUpload blockQuote insertTable
|
||||
| undo redo
|
||||
|
||||
|
||||
There's more information about available toolbar items in the
|
||||
`official CKEditor documentation page
|
||||
<https://ckeditor.com/docs/ckeditor5/latest/features/toolbar/toolbar.html>`_
|
||||
9
web_widget_ckeditor/readme/CONTRIBUTORS.rst
Normal file
9
web_widget_ckeditor/readme/CONTRIBUTORS.rst
Normal file
@@ -0,0 +1,9 @@
|
||||
* `Therp <https://www.therp.nl>`_
|
||||
|
||||
* Holger Brunn <hbrunn@therp.nl>
|
||||
* Stefan Rijnhart <stefan@therp.nl>
|
||||
* George Daramouskas <gdaramouskas@therp.nl>
|
||||
|
||||
* `Camptocamp <https://www.camptocamp.com>`_
|
||||
|
||||
* Iván Todorovich <ivan.todorovich@camptocamp.com>
|
||||
1
web_widget_ckeditor/readme/DESCRIPTION.rst
Normal file
1
web_widget_ckeditor/readme/DESCRIPTION.rst
Normal file
@@ -0,0 +1 @@
|
||||
This module adds a new widget `ckeditor` to edit HTML fields using CKEditor.
|
||||
13
web_widget_ckeditor/readme/ROADMAP.rst
Normal file
13
web_widget_ckeditor/readme/ROADMAP.rst
Normal file
@@ -0,0 +1,13 @@
|
||||
* Allow to configure toolbar using widget's options.
|
||||
|
||||
.. code-block:: xml
|
||||
|
||||
<field
|
||||
name="description_html"
|
||||
widget="ckeditor"
|
||||
options="{'bulletedList': false, 'pageBreak': true}"
|
||||
/>
|
||||
|
||||
|
||||
* There seems to be a small incompatibility issue with `web_drop_target`.
|
||||
`More information here <https://github.com/OCA/web/pull/2083#issuecomment-970719103>`_
|
||||
Reference in New Issue
Block a user