title: TinyMCE insert raw html into active editor
body: <p>Using WindowManager for TinyMCE I open a window and it writes back raw HTML. But its truncating my links for my images. Whats weird is that it does NOT do it to the anchor tag. Just the image tag.</p>
  
  <p>I have this bit of code</p>
  
  <pre><code>html = '&lt;a title="'+ $('#title').val() +'" href="'+ $('#url').val() +'"&gt;&lt;img src="'+ $('#imgURL').val() +'" /&gt;&lt;/a&gt;';
  
      var parentEditor = parent.tinyMCE.activeEditor;
      parentEditor.execCommand('mceInsertRawHTML', false, html);
      parentEditor.windowManager.close();
  </code></pre>
  
  <p>It DOES insert the html into the active Editor. When I log <strong>html</strong> to the console I get</p>
  
  <pre><code>&lt;a title="Click Action" href="yahoo.com"&gt;&lt;img src="http://marketingedu.mychm.co/images/buttons/c2a-button4.png" /&gt;&lt;/a&gt;
  </code></pre>
  
  <p>However when I view the Source Code in the tinyMCE editor, it changed the images SRC attribute to </p>
  
  <pre><code>../../images/buttons/c2a-button4.png
  </code></pre>
  
  <p>Here is my entire javascript init for the TinyMCE editor</p>
  
  <pre><code>tinymce.init({
          selector: ".editor",
          setup: function(ed) {
              ed.on('change', function(e) {
                  tinyMCE.triggerSave();
  
                  $('form').trigger('checkform.areYouSure');
              });
              ed.on('init', function(e) {
                  autoresize_max_height: 500
              });
              ed.addButton('defaultbtn', {
                  title: 'Insert Button',
                  icon: 'fa fa-plus-square',
                  onclick: function() {
                      // Open window
                      ed.windowManager.open({
                          title: 'Button Selector',
                          url: "&lt;?=$this-&gt;url('/webinar/custombuttons') ?&gt;",
                          width: 800,
                          height: 600
                      });
                  }
              });
          },
          plugins: [
              "advlist autolink link responsivefilemanager lists charmap print preview hr anchor pagebreak spellchecker",
              "searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking",
              "save table contextmenu directionality template paste textcolor colorpicker responsivefilemanager autoresize"
          ],
          toolbar: "undo redo | styleselect | bold italic | forecolor backcolor | alignleft aligncenter alignright | bullist numlist | outdent indent | table | link responsivefilemanager defaultbtn",
          image_advtab: true ,
  
          external_filemanager_path:"/filemanager/",
          filemanager_title:"Filemanager" ,
          external_plugins: { "filemanager" : "/filemanager/plugin.min.js"},
      });
  </code></pre>