Monday, September 30, 2024
1 change
Enhancements to existing features
Knowledge pages now use the newer HTML editor components, making it easier to add and manage items like tables of contents, embedded videos, Excalidraw boards, and files. The update also improves stability for collaborative editing and reduces unnecessary page refreshes or flickering while editing.
Original PR description
Since Knowledge is being refactored to use the new editor features, notably embedded components, which are the successor of knowledge "Behaviors", it is the perfect opportunity to move some of them…
Since Knowledge is being refactored to use the new editor features, notably embedded components, which are the successor of knowledge "Behaviors", it is the perfect opportunity to move some of them in the html_editor module, so that any HtmlField can make use of them. ### Table of Content This embedded component dynamically aggregates headers in a HtmlField value and displays an anchor tree redirecting to each header by clicking on it. ### Video (Iframe) This embedded component stores the URL of a trusted video provider (like youtube), and displays an iframe in the HtmlField when it is mounted. ### Excalidraw (Iframe) This embedded component stores the URL of an excalidraw drawing boad, and displays an iframe in the HtmlField when it is mounted. ### File This embedded component stores data related to an existing attachment and displays it in the HtmlField, with useful features like opening the FileViewer, and download the file. The file can be renamed (locally for the HtmlField, independently of the real attachment name). This PR also introduces fixes and improvements related embedded components and knowledge needs. See each commit for more details. Enterprise: https://github.com/odoo/enterprise/pull/67083 task-3672747 Co-authored-by: Damien Abeloos <abd@odoo.com> Co-authored-by: Adrien Schoffeniels <adsc@odoo.com> Co-authored-by: Julien Banken <jbn@odoo.com> Co-authored-by: Thomas Josse <thjo@odoo.com>