Repository navigation
Conversation
New `markdown` field widget for text fields, based on Toast UI Editor: Markdown (default) and WYSIWYG modes, toolbar, height, placeholder options, read-only rendering by the Toast UI viewer. Demo on a user group. QUnit tests included. Origin: written by Yves Goldberg (Ygol InternetWork) in December 2025 for the Ygol InternetWork Odoo instance. No code taken from other Odoo modules (web_widget_text_markdown uses different libraries: bootstrap-markdown, showdown, marked). Third-party code: Toast UI Editor 3.2.2 (c) NHN Cloud Corp., MIT license, in static/src/lib, byte-identical to https://uicdn.toast.com/editor/3.2.2/. Assisted-by: Claude Code:claude-opus-5-5
web_m2x_options, from the same repository, adds a step to every form view load that reads its settings from a session the QUnit environment does not have. The tests neutralize that step: it only concerns x2many fields. Assisted-by: Claude Code:claude-opus-5-5
ygol
force-pushed
the
16.0-add-web_widget_markdown_editor
branch
from
November 22, 2026 08:12
4ae5ac8 to
2c1c004
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Module
web_widget_markdown_editor: a
markdownwidget for text fields, based onToast UI Editor 3.2.2 (MIT, maintained).
language
because Odoo sanitizes them on save.
Proposed as Alpha.
This PR first also held
web_editor_paste_markdown, which used the Toast UI copy ofthis widget. That module now ships its own libraries and is proposed on its own in
#3820; the two modules are independent.
Why a new module
web_widget_text_markdownstops at 15.0 (the 18.0 migration, #3381, is a draft). Itrelies on bootstrap-markdown, which is no longer maintained. Toast UI Editor is
maintained and offers a WYSIWYG mode.
Origin and third-party code
since then. No code comes from other Odoo modules.
static/src/libholds Toast UI Editor 3.2.2, (c) NHN Cloud Corp., MIT license(
static/src/lib/LICENSE). The files are byte-identical to the official build athttps://uicdn.toast.com/editor/3.2.2/.
AI assistance
Following the OCA AI policy, the commits carry
Assisted-by:trailers: Claude Code(Claude Opus 5.5) for the widget, the tests and the OCA packaging. I reviewed and
tested this code, and I take responsibility for every line.
Tests
QUnit suite run by
tests/test_js.py(HttpCase.browser_js): read-only rendering,save of the edited Markdown, Markdown mode by default with the mode tabs visible, text
fields only. The suite neutralizes
web_m2x_options' form controller step, which readsa session the test environment does not have.