diff --git a/fusion_repairs/__manifest__.py b/fusion_repairs/__manifest__.py index cc9c2f3c..037320ba 100644 --- a/fusion_repairs/__manifest__.py +++ b/fusion_repairs/__manifest__.py @@ -4,7 +4,7 @@ { 'name': 'Fusion Repairs', - 'version': '19.0.2.2.3', + 'version': '19.0.2.2.4', 'category': 'Inventory/Repairs', 'summary': 'Guided medical equipment repair intake, dispatch, maintenance, and self-service portal', 'description': """ diff --git a/fusion_repairs/static/src/components/flowchart_designer/flowchart_designer.js b/fusion_repairs/static/src/components/flowchart_designer/flowchart_designer.js index 800f2240..d0d866cb 100644 --- a/fusion_repairs/static/src/components/flowchart_designer/flowchart_designer.js +++ b/fusion_repairs/static/src/components/flowchart_designer/flowchart_designer.js @@ -19,7 +19,7 @@ * the source of truth for the designer view and the node/edge tables are * the source of truth for the runtime traversal. */ -import { Component, onMounted, onWillUnmount, useRef, useState } from "@odoo/owl"; +import { Component, markup, onMounted, onWillUnmount, useRef, useState } from "@odoo/owl"; import { registry } from "@web/core/registry"; import { rpc } from "@web/core/network/rpc"; import { useService } from "@web/core/utils/hooks"; @@ -106,8 +106,13 @@ export class FlowchartDesigner extends Component { */ get wysiwygConfig() { const meta = this.selectedMeta; + // CRITICAL: wrap the HTML string with markup() so the editor's + // setElementContent() takes the innerHTML branch instead of the + // textContent branch - otherwise the editor renders our tags as + // literal text instead of formatted prose / lists. + const rawHtml = meta?.content_html || ""; return { - content: meta?.content_html || "", + content: rawHtml ? markup(rawHtml) : markup(""), Plugins: MAIN_PLUGINS, // onChange fires after each edit step - read the current HTML // from the editor and persist it to selectedMeta + dirty flag.