MyBB Community Forums
[How To?] How to add any text to textarea message with other windows? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [How To?] How to add any text to textarea message with other windows? (/thread-158510.html)



How to add any text to textarea message with other windows? - Mauricio - 2014-09-02

Hello again! 


In newthread.php I open a window with javascript "window.open" in this window I have a text that I would put this text in the message textarea editor? Any idea?


In MyBB 1.6 so I did:
<script type="text/javascript">
var editor = eval('opener.' + 'clickableEditor');
function insert()
{
	if(editor)
	{
		editor.performInsert("Text!!!", "", true, false);
	}
}
</script>