Hi
I was wondering if any one could help me. I'm trying to integrate FCK into my script but am having trouble. I am using jquery ui to display modal dialogs. When the user clicks a link I want the user to be able to edit the content (as expected) any way heres my code...
But when I try to run the code, I get the error "oEditor has no properties". But also when I open the modal dialog, the wysiwyg seems to refresh itself. As if it were loading again.
If anyone has come across such a problem before and sorted it any help you can give is greatly appreciated.
Regards
Chippo
I was wondering if any one could help me. I'm trying to integrate FCK into my script but am having trouble. I am using jquery ui to display modal dialogs. When the user clicks a link I want the user to be able to edit the content (as expected) any way heres my code...
$('#editor_div').show(); $('#editor_div').dialog({ title:'Edit Page', modal:true, width:'850px', height:'500px', align:'center', overlay:{ opacity: 0.5, background:'#000000' } }); $.get(TreeView.ajaxurl+'?p=pages&opt=editpage&pageid='+pageid, function(data){ $('#editpageid').val(pageid); var oEditor = FCKeditorAPI.GetInstance('pagecontent'); oEditor.SetHTML(data); return false; } );
But when I try to run the code, I get the error "oEditor has no properties". But also when I open the modal dialog, the wysiwyg seems to refresh itself. As if it were loading again.
If anyone has come across such a problem before and sorted it any help you can give is greatly appreciated.
Regards
Chippo