I have added all the code from the link you shared to the custom code panel in advanced settings as ‘copyToClipboardBypass’. I have not changed it at all.
I can’t work out how to properly share to parent from the editor console.
I’m trying to use postMessage, but then how does the javascript code take the data and process it? How do I reference it to properly pass it to the js and then how does it pass that info back/execute the process?
This is what I have:
$w ( ‘#shareButtonMusculoskelordle’ ). onClick (()=> {
$w ( ‘#shareBoxMusculoskelordle’ ). text = ‘MUSCULOSKELORDLE \r\n’ + today . toDateString () + ‘\r\n’ + count + ‘/10’ + ‘\r\n’ + $w ( ‘#shareLine1’ ). value + ‘\r\n’ + $w ( ‘#shareLine2’ ). value + ‘\r\n’ + $w ( ‘#shareLine3’ ). value + ‘\r\n’ + $w ( ‘#shareLine4’ ). value + ‘\r\n’ + $w ( ‘#shareLine5’ ). value + ‘\r\n’ + $w ( ‘#shareLine6’ ). value + ‘\r\n’ + $w ( ‘#shareLine7’ ). value + ‘\r\n’ + $w ( ‘#shareLine8’ ). value + ‘\r\n’ + $w ( ‘#shareLine9’ ). value + ‘\r\n’ + $w ( ‘#shareLine10’ ). value
**let** shareMessage = $w ( '#shareBoxMusculoskelordle' ). text
wixWindow . postMessage ( shareMessage , 'copyToClipboardbypass' )
})
Any and all help would be appreciated.
(I understand this is not covered under wix support but if you could direct me to who else can help me, paid or unpaid that would be great)