cellarius
01-23-2009, 02:23 PM
For this mod (https://vborg.vbsupport.ru/showthread.php?t=202385) I'm using the insert_text()-method of the editor from a popup window quite succesfully on the main editor when users create new posts or are in extended editing view.
What I use is
window.opener.vB_Editor['vB_Editor_001'].insert_text(text)where text is a variable containing, no surprise there, text.
However, if I try to do exactly the same on the QR or inline editors, nothing happens (of course I changed the 'vB_Editor_001' accordingly (ie. 'vB_Editor_QR' for quick reply).
If I try to use insert_text() from a link within the page, not the popup, it seems to work.
--------------- Added 1232750818 at 1232750818 ---------------
Problem solved.
What I use is
window.opener.vB_Editor['vB_Editor_001'].insert_text(text)where text is a variable containing, no surprise there, text.
However, if I try to do exactly the same on the QR or inline editors, nothing happens (of course I changed the 'vB_Editor_001' accordingly (ie. 'vB_Editor_QR' for quick reply).
If I try to use insert_text() from a link within the page, not the popup, it seems to work.
--------------- Added 1232750818 at 1232750818 ---------------
Problem solved.