Title: editor bug custom filed
Last modified: August 21, 2016

---

# editor bug custom filed

 *  [Naohisa Tatematsu](https://wordpress.org/support/users/naohisa-tatematsu/)
 * (@naohisa-tatematsu)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/editor-bug-custom-filed/)
 * If you add a Wysing editor in the custom field, I’ve found a bug that can not
   insert ads in place of Wysing editor that you have added.
    version 1.7.61 ===
   ===
 *     ```
       $ diff -u sam-dialog.js.org sam-dialog.js
       --- sam-dialog.js.org	2013-10-23 20:13:03.000000000 +0900
       +++ sam-dialog.js	2013-10-23 20:09:42.000000000 +0900
       @@ -22,7 +22,7 @@
          if(samItem == 1) samCode += ' name="' + samIdObj.options[samIdObj.selectedIndex].text + '"'
          if(samBA == 1) samCode += ' codes="true"]';
          else samCode += ']';
       -	window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, samCode);
       +	window.tinyMCE.execInstanceCommand(window.tinyMCE.activeEditor.id, 'mceInsertContent', false, samCode);
        	tinyMCEPopup.editor.execCommand('mceRepaint');
        	tinyMCEPopup.close();
        	return;
       @@ -46,7 +46,7 @@
          if(samBA == 1) samCode += ' codes="true"]';
          else samCode += ']';
   
       -  window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, samCode);
       +  window.tinyMCE.execInstanceCommand(window.tinyMCE.activeEditor.id, 'mceInsertContent', false, samCode);
          tinyMCEPopup.editor.execCommand('mceRepaint');
          tinyMCEPopup.close();
          return;
       @@ -70,7 +70,7 @@
          if(samBA == 1) samCode += ' codes="true"]';
          else samCode += ']';
   
       -  window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, samCode);
       +  window.tinyMCE.execInstanceCommand(window.tinyMCE.activeEditor.id, 'mceInsertContent', false, samCode);
          tinyMCEPopup.editor.execCommand('mceRepaint');
          tinyMCEPopup.close();
          return;
       @@ -92,7 +92,7 @@
          if(samItem == 1) samCode += ' name="' + samIdObj.options[samIdObj.selectedIndex].text + '"'
          samCode += ']';
   
       -  window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, samCode);
       +  window.tinyMCE.execInstanceCommand(window.tinyMCE.activeEditor.id, 'mceInsertContent', false, samCode);
          tinyMCEPopup.editor.execCommand('mceRepaint');
          tinyMCEPopup.close();
          return;
       ```
   
 * [http://wordpress.org/plugins/simple-ads-manager/](http://wordpress.org/plugins/simple-ads-manager/)

The topic ‘editor bug custom filed’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-ads-manager_73687f.svg)
 * [Simple Ads Manager](https://wordpress.org/plugins/simple-ads-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-ads-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-ads-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-ads-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-ads-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-ads-manager/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Naohisa Tatematsu](https://wordpress.org/support/users/naohisa-tatematsu/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/editor-bug-custom-filed/)
 * Status: not resolved