馃悶 Bug report: Console error when using global widget - [ED-10226] #19456
Labels
bug
Indicates a bug with one or multiple components.
editor/history-revisions
References the History and Revisions feature and panel of the Editor.
editor
References the Elementor Editor and all its components.
mod*
product/3.19
[Temp.] References if an Issue or Discussion is part of Elementor (and Pro) v3.19.
status/merged
Indicates when a Pull Request has been merged to a Release.
widget/global
References Elementor Pro鈥檚 Global Widgets feature.
Milestone
Prerequisites
Description
When I try to use global widget I have this console error:
editor-document.min.js?ver=3.7.0:2 Uncaught ReferenceError: elementorDevTools is not defined
at get CommandHistory [as CommandHistory] (editor-document.min.js?ver=3.7.0:2:25976)
at 43670 (editor.min.js?ver=3.7.3:3:61401)
at webpack_require (editor.min.js?ver=3.7.3:3:276153)
at 36112 (editor.min.js?ver=3.7.3:3:59189)
at webpack_require (editor.min.js?ver=3.7.3:3:276153)
at 51311 (editor.min.js?ver=3.7.3:3:64197)
at webpack_require (editor.min.js?ver=3.7.3:3:276153)
at 12044 (editor.min.js?ver=3.7.3:3:83262)
at webpack_require (editor.min.js?ver=3.7.3:3:276153)
at editor.min.js?ver=3.7.3:3:279308
For fixing the issue, you have to replace $e.modules.document.CommandHistory with $e.modules.editor.document.CommandHistoryBase in ../modules/global-widget/assets/js/editor/commands/unlink.js and ../modules/global-widget/assets/js/editor/commands/link.js because the CommandHistory is deprecated in Elementor 3.7.0
Steps to reproduce
Isolating the problem
System Info
Click to reveal
The text was updated successfully, but these errors were encountered: