I'm using TinyMCE and want to execute a php script get the output and post the output.
I'm trying to insert my code with data pre-populated by a php script.
Can someone help me with this. I'm a JavaScript novice..
This is my code to insert single instances without data. (The rest of the code is straight from the example on the documentation api)
///////////////////////////////////////////////////////////////////////////////
ed.addCommand('mceCommandHere', function() {
ed.execCommand('mceInsertContent',false,'[CODEHERE ="" URL ="" Title=""]');
});
ed.addButton('CommandHere', {
title : 'Add Subscriptions',
cmd : 'mceCommandHere',
image : url + '/PictureHere.png'
});
ed.onNodeChange.add(function(ed, cm, n) {
cm.setActive('CommandHere', n.nodeName == 'IMG');
});
///////////////////////////////////////////////////////////////////////////////