Jquery: Could not send to window: Error: Syntax error, unrecognized expression:
<p>So I have this peice of code such as:</p>

<pre><code>function image() {
    var debug = true;
    try{
        var win = window.dialogArguments || opener || parent || top;
        win.send_to_editor('[button size="" color="" link=""]place title here[/button]');
    }catch(e){
        console.log("Could not send to window: " + e);
    }

}
</code></pre>

<p>That when Used will send some text from the popup window to my editor, my wysiwyg. How ever it keeps throwing the error: </p>

<p><strong>Could not send to window: Error: Syntax error, unrecognised expression: [button size="" color="" link=""]place title here[/button]</strong> </p>

<p>this should just be sent to the editor, any ideas?</p>
