1: 2: 3: 4: 5: 6:
//function which is not working when "tinyMCE.init" code is active $('#button1').click(function() { document.getElementById('mceEditor1').value =document.getElementById('toupdate').innerHTML; return false; });
1: 2:
var inst = tinyMCE.getInstanceById('content'); inst.setHTML('my cool new html');