diff --git a/acf-code-editor-v5.php b/acf-code-editor-v5.php index 38b2ebb..6d53b66 100644 --- a/acf-code-editor-v5.php +++ b/acf-code-editor-v5.php @@ -104,8 +104,8 @@ public function render_field($field) $rendered_attributes[$attribute] = $field[$attribute]; } $value = esc_textarea($field['value']); ?> -
> - +
+
{ if ($field.length) { let newInstance = instantiator($field[0]) newInstance.focus() - editorInstances.push(newInstace) + editorInstances.push(newInstance) } })