Zen Follower
- Join Date:
- Jan 2007
- Location:
- Illinois, USA
- Posts:
- 329
- Plugin Contributions:
- 0
Order Comments Status/Update Boilerplate
I got Boiler plate to work on 2.1 editing the orders.php file
-
CKEditor 5’s visible editor is not updating at all because CKEditor 5 ignores direct DOM updates (innerHTML) and will immediately revert to its internal model.
-
The only reliable way to update CKEditor 5 is via its editor instance API: editor.setData(...).
So I rebuilt the handler to find the CKEditor 5 editor instance (even if Zen Cart stores it in a non-obvious place) and then insert using: -
editor.getData() + editor.setData(current + comment)
NTO: building a better network thru collaboration
www.needtoorder.com | www.coffeewitheinstein.com