title: Kendo UI Editor Duplicating
body: <p>I have a kendo grid with the following command below. When I first click on the command button, it works fine and there is 1 <code>&lt;input&gt;</code>, 1 <code>&lt;textarea&gt;</code> and 1 <code>&lt;input&gt;</code>. When I close the popup window and reopen it, the <code>&lt;textarea&gt;</code> is duplicated every time.</p>
  
  <pre><code>command: [{
      name: "Edit",
      title: "Alert Email",
      width: "180px",
      click: onDataBound75
  }],
  </code></pre>
  
  <p>Calling the following function:</p>
  
  <pre><code>function onDataBound75(e) {
      e.preventDefault();
      $("#txtAlert").kendoEditor({
          resizable: {
              content: true,
              toolbar: true,
              encoded: false
          }
      });
      var window = $("#emailAlert_popup").kendoWindow({
          width: "600px",
          visible: false,
          modal: true,
          actions: [
              "Maximize",
              "Close"
          ],
      });
      var dataItem = this.dataItem($(e.currentTarget).closest("tr"));
      var viewModelAlert75 = kendo.observable({
          Alert75EmailSubject: dataItem.Alert75EmailSubject,
          Alert75EmailBody: dataItem.Alert75EmailBody,
          Alert75FromAddress: dataItem.Alert75FromAddress,
      });
      kendo.bind($("#emailAlert_popup"), viewModelAlert75);
      window.data("kendoWindow").center().open();
  };
  </code></pre>
  
  <p>And the aspx file looks like this:</p>
  
  <pre><code>&lt;div id="emailAlert_popup" class="TT_PopupWindow"&gt;
      &lt;div class="SearchParam"&gt;
          &lt;label class="control-label" for="txtAlert75EmailSubject" style="width:200px"&gt;Email Subject&lt;/label&gt;
          &lt;input name="txtEmailSubject" id="txtAlert75EmailSubject" class="k-textbox" style="width:430px"
              data-bind="value: Alert75EmailSubject" /&gt;                    
      &lt;/div&gt;
      &lt;div class="SearchParam"&gt;
          &lt;label class="control-label" for="txtAlert75EmailBody" style="width:200px"&gt;Email Body&lt;/label&gt;
          &lt;textarea id="txtAlert" rows="10" cols="30" style="height:440px" aria-label="editor" data-bind="value: Alert75EmailBody"&gt;&lt;/textarea&gt;
      &lt;/div&gt;
      &lt;div class="SearchParam"&gt;
          &lt;label class="control-label" for="txtAlert75FromAddress" style="width:200px"&gt;From Address&lt;/label&gt;
          &lt;input name="txtFromAddress" id="txtAlert75FromAddress" class="k-textbox" style="width:430px"
              data-bind="value: Alert75FromAddress"
          /&gt;
      &lt;/div&gt;
      &lt;div class="k-edit-buttons k-state-default"&gt;
          &lt;button type="button" id="btnAlert75EmailUpdate" data-role="button" class="k-button k-button-icontext k-primary k-grid-update" role="button" aria-disabled="false" tabindex="0" style="float:right"&gt;&lt;span class="k-icon k-i-check"&gt;&lt;/span&gt;Update&lt;/button&gt;
          &lt;button type="button" id="btnAlert75Cancel" data-role="button" class="k-button k-button-icontext k-grid-cancel" role="button" aria-disabled="false" tabindex="1" style="float:right"&gt;&lt;span class="k-icon k-i-cancel"&gt;&lt;/span&gt;Cancel&lt;/button&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>