title: Use Javascript variable in object name?
body: <p>I am using CKEditor, and, when referring to the CKEditor instance, I need to use a variable.  But, since calling the instance is a object, I am really not sure how to do this.</p>
  
  <p>I am using:</p>
  
  <pre><code>CKEDITOR.instances.textarea123.insertHtml('&lt;p&gt;Whatever&lt;/p&gt;');
  </code></pre>
  
  <p>The issue is, I need 123 to be a variable, because I need to change the instance based on the editor page that is loaded.</p>
  
  <p>So, how can I use a variable in an object name?</p>
  
  <p>For obvious reasons the following does not work, but I need to achieve what it is "pretending" to do:</p>
  
  <pre><code>var id = 354;
  CKEDITOR.instances.textarea+id+.insertHtml('&lt;p&gt;Whatever&lt;/p&gt;');
  </code></pre>