From 870a9a59efefb7ce6ff2f9dc2b952416247a9953 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Wed, 8 Mar 2023 11:04:08 +0700 Subject: add widget ckeditor --- web_widget_ckeditor/static/description/icon.png | Bin 0 -> 9455 bytes web_widget_ckeditor/static/description/index.html | 482 ++++++++++++++++++++++ 2 files changed, 482 insertions(+) create mode 100644 web_widget_ckeditor/static/description/icon.png create mode 100644 web_widget_ckeditor/static/description/index.html (limited to 'web_widget_ckeditor/static/description') diff --git a/web_widget_ckeditor/static/description/icon.png b/web_widget_ckeditor/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/web_widget_ckeditor/static/description/icon.png differ diff --git a/web_widget_ckeditor/static/description/index.html b/web_widget_ckeditor/static/description/index.html new file mode 100644 index 00000000..b3377db6 --- /dev/null +++ b/web_widget_ckeditor/static/description/index.html @@ -0,0 +1,482 @@ + + + + + + +CKEditor Widget + + + +
+

CKEditor Widget

+ + +

Beta License: AGPL-3 OCA/web Translate me on Weblate Try me on Runbot

+

This module adds a new widget ckeditor to edit HTML fields using CKEditor.

+

Table of contents

+ +
+

Configuration

+

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:

+
+<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.

+
+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

+
+
+

Known issues / Roadmap

+
    +
  • Allow to configure toolbar using widget’s options.
  • +
+
+<field
+    name="description_html"
+    widget="ckeditor"
+    options="{'bulletedList': false, 'pageBreak': true}"
+/>
+
+ +
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Therp BV
  • +
  • Camptocamp SA
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

Current maintainer:

+

ivantodorovich

+

This module is part of the OCA/web project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + -- cgit v1.2.3