Morning.
I am currently trying to add a quick edit feature to my application. I have simply data passed using fancybox wich loads the appropriate data into tinymce.
The problem being once i have closed the fancybox down for the first time and move onto the second item to edit and click, everything loads up ok visualy (including tinyMCE) but i cannot edit within the wysiwyg editor with firebug displaying undefined 'e' or 't' or 'd' whichever one it decides to show...
any help would be muchly appreciated.
EDIT
try{
function remove_mce(){
tinyMCE.execCommand('mceRemoveControl',false,'elm1');
}
$('#tree a').bind('click', function(){
$('#tree ul li ul').removeClass('showBranch');
var ob = $(this);
var ob_parent = ob.parent('li');
ob_parent.removeClass('branch').addClass('branch-open');
ob.parents('ul').addClass('showBranch');
$('~ li', ob_parent).children(':first').addClass('showBranch');
return false;
});
$("#tree .product a").fancybox({
'autoDimensions': false,
'width' : '750',
'height' : '90%',
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'speedIn' : 600,
'speedOut' : 200,
'overlayShow' : true,
'hideOnOverlayClick' : false,
'onCleanup' : remove_mce()
});
}catch(err){alert(err.message);}