[pmwiki-users] guiedit.js
Christian Schlatter
ch at schlatter.net
Sat Jul 2 20:09:34 CDT 2005
I'd like to use the insMarkup(..) function from guiedit.js, but from
within a popup window. So, instead of
function insMarkup(mopen, mclose, mtext) {
var tarea = document.getElementById('text');
...
}
I should have
function insMarkup(mopen, mclose, mtext) {
var tarea = window.opener.document.getElementById('text');
... ^^^^^^^^^^^^^^
}
The only solution I see is redefining document like
var document = window.opener.document
before calling insMarkup(..). But this doesn't seem to work, maybe
because document is a DOM object.
Can someone help me with that?
Thanks,
ChristianS
More information about the pmwiki-users
mailing list