Jump to content

Extplorer post to textarea from wysiwyg


quasiman

Recommended Posts

Hello, this is regarding Extplorer at http://extplorer.sourceforge.net

 

I'm trying to add a TinyMCE editor for people not used to writing content in HTML, and so I've added a popup window link to 'edit_area_full_with_plugins.js':

<div class='area_toolbar' id='toolbar_1'>[__TOOLBAR__]<a href=\"javascript:void(0);\" name=\"newWindow\" title=\"Child Window\" onClick=\"window.open('tinymce/wysiwyg.html','newWindow','width=700, height=350,left=150,top=200,toolbar=no,resizable=false')\">WYSIWYG Editor</a></div>

This pops up my window fine, but I can't seem to post back to the EditArea form.  Here's my post script and form....what am I doing wrong?

<script type="text/javascript">
    function post_value(){
    opener.document.form.textarea.value =  newWindow.document.frm.elm1.value;
    self.close();
    }
</script>

<form name="frm" method="post" action="">
    <textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 80%">
    </textarea>
    <br />
</form>
<input type="button" value="Submit" onclick="post_value();">
</form>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.