title: TinyMCe content not showing up on editor for update
body: <p>I am using tinyMCE with PHP</p>
  
  <p>I have a page with tinyMCe editor.What I am trying is that when user finished his working on the editor he clicks the save button and the form is submitted and the tinyMCE content is saved in the database and the tinyMCE content still remains their in the editor.</p>
  
  <p>Now what I've done so far is.</p>
  
  <p>I've a script History_View.php which contains the editor.
  Another script History_Model.php which inserts the tinyMCE text in database.</p>
  
  <p>There are two problems that are occuring.</p>
  
  <ol>
  <li><p>When I click on save button after editing in my tinyMCE editor the text successfully goes to my History_Model.php but the data(i.e the content of tinyMCE) is not getting stored in the database.Although the statments look to run successfully and there is no error.Here is the code to insert in DB.$historyy is the content here.</p>
  
  <pre><code>public static function setHistory($id,$historyy)
  {
      self::$connection=DBCon::ConnectToDB();         
      mysql_query("call UpdateCompanyHistory($id,".utf8_encode($historyy).")");
      mysql_close(self::$connection);         
      header("Location:History_View.php?data=".$historyy);
      exit();
  }
  </code></pre></li>
  <li><p>After the query work i used php header to append the content in the url and move back to my editor page(i.e History_View.php) and there i am trying to place that text again in the editor.When I place it back using </p>
  
  <pre><code> echo"
  
   &lt;script type='text/javascript'&gt;
  
     function loadDefaultTinyMCEContent()
     {    
             tinyMCE.activeEditor.selection.setContent('".$_GET['editorData']."');
     }
   &lt;/script&gt;
  
   ";
  </code></pre></li>
  </ol>
  
  <p><img src="https://i.stack.imgur.com/Y2WuR.png" alt=""></p>
  
  <p>Now this is how i edited my tinymce what the problem is that the picture shows up in the editor again after all the process but not the red text because the tinyMCE content is cut off i.e it is not returning the complete text.</p>
  
  <pre><code>  &lt;p&gt;&lt;img src="http://www.veryicon.com/icon/png/Folder/Hyperion/Games.png" alt="" width="256" height="256" /&gt;&lt;strong&gt;&lt;span style="color:
  </code></pre>
  
  <p>Now I don't know why it is cutting the content and why it is not inserting it in the database.]</p>