tinyMCE problem with jQuery load
$(this).load("pages/addnew-page.php", {areyouhere: "true"}, function(){
$(this).show("blind", 500);
$('textarea.tinymce').tinymce({
//tinyMCE Config
});
});
and then in addnew-page.php, i use:
<textarea class="tinymce">this is a text area</textarea>
First time TinyMCE is launched, it works perfectly, but if i go to another page using .load(), i get a bung of exceptions:
uncaught exception: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIDOMHTMLDocument.implementation]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js :: <TOP_LEVEL> :: line 16" data: no]
I have no idea what this causes it. Does anyone know?
I suggest you don't use the jquery build of tinymce (which is surprisingly slow when handling keyboard input). But instead use the regular jQuery lib + the regular tinymce build.
精彩评论