Hello Florian,
I think that it's would be good to open an new improvement issue like
"Update Trumbowyg connector to support visual-editor-buttons attribute"
to fill this missing.
I supposed that the first implementation cover the needs to have an
updated js lib to edit without going too far.
Nicolas
Le 09/04/2025 à 15:28, Florian Motteau a écrit :
Hi all,
One of our customer expressed the need for a rich text editor. I check
the current implementation of this feature in OFBiz and quickly found
<textarea visual-editor="true" visual-editor-buttons="..."/>
...which triggers https://alex-d.github.io/Trumbowyg/ on the textarea
(introduced by https://issues.apache.org/jira/browse/OFBIZ-10093).
However, the visual-editor-buttons attribute is not used in
OfbizUtil.js, and we cannot define which buttons we want to enable
(checking older versions, it seems that it was possible when the
library used was elrte.js).
Wouldn't it be nice to use the attribute to control the Trumbowyg
instance ? Or maybe there was a good reason to stick to a static
configuration (in that case it could be a good idea to remove this
useless attribute) ?
I would be happy to work on this feature and submit a PR, maybe
reopening OFBIZ-10093 ?
Regards
Florian