Hi all,
I just watched the tutorial and think the extension feature is really great!
What I would like to do is to print some code into the textarea which is currently selected. E.g. the textarea for some function of my sprite.
I tried the following:
var div = document.createElement('div');
div.innerText = 'Insert Code';
document.getElementById('topBar').appendChild(div);
$(div).button().click(function()
{
document.getElementById("#event_editor > textarea").value = "code";
});
Instead of "value" I also tried "innerHtml". But it seems nothing happens. I got the selector via the Chrome developer tool.