title: change ckeditor templates data
body: <p>I want to change the default text of template of creditor.</p>
  
  <p>Following is my ckeditor at time of page load.
  <img src="https://i.stack.imgur.com/IeaQV.png" alt="enter image description here">  </p>
  
  <p>I want to change the <strong>patient name</strong> when user select the patient name from drop down and also want change the drugs section according to drugs added by user from list of drugs.
  below is code for CKEDITOR with id prescription_details.</p>
  
  <pre><code>CKEDITOR.instances.prescription_details.setData( '&lt;p id="test"&gt;Patient Name.&lt;/p&gt;' +
          '&lt;table cellspacing="0" cellpadding="0" style="width:100%" border="0"&gt;&lt;tr&gt;&lt;td style="width:60%"&gt;&lt;h3&gt;Drugs&lt;/h3&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td style="width:40%"&gt;&lt;h3&gt;Doseage&lt;/h3&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;' +
          '&lt;p&gt;Instructions.&lt;/p&gt;' ); 
  </code></pre>
  
  <p>and Below is code for takin the value of p with id "test"</p>
  
  <pre><code>var editor_data = CKEDITOR.instances['prescription_details'].getData("p#test");
  </code></pre>