We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 30d40cd + 629eaae commit 6ac2217Copy full SHA for 6ac2217
src/JsonEditorWidget.php
@@ -140,7 +140,7 @@ public function run()
140
// Add the "JSONEditor" instance to the global window object, otherwise the instance is only available in "ready()" function scope
141
$widgetJs = "window.{$widgetId} = new JSONEditor(document.getElementById('{$containerId}'), {$clientOptions});\n";
142
// Add the "JSONEditor" instance to the global window.jsonEditors array.
143
- $widgetJs .= "if (!window.jsonEditors) { window.jsonEditors = []; } window.jsonEditors.push({$widgetId});";
+ $widgetJs .= "if (!window.jsonEditors) { window.jsonEditors = []; } window.jsonEditors.push(window.{$widgetId});";
144
145
$readyFunction = '';
146
try {
0 commit comments