diff --git a/templates/wp-editor.php b/templates/wp-editor.php
index 4554274b37de7a70a92dc8de5a84141440db892a..90576aa779361a91ab35c22ff785e8d268992a94 100644
--- a/templates/wp-editor.php
+++ b/templates/wp-editor.php
@@ -8,7 +8,7 @@
 wp_print_styles( 'media-views' );
 
 $default_settings = [
-	'textarea_name' => esc_attr( $name_prefix ) . '[' . esc_attr( $this->get_name() ) . ']',
+	'textarea_name' => esc_attr( $name_prefix ) . '[' . esc_attr( $field->get_name() ) . ']',
 	'tinymce'       => [
 		'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink,undo,redo',
 		'toolbar2' => '',