I am a new user and just installed CKEditor and am writing my first plugin.
Im having some problem with the new function CKEDITOR.ajax.post().
In my plugin I click a button and a backend PHP script retrieves content from a MySQL database based on the record number given.
Here is the problem part of the onok function in the dialog:
onOk: function() {
var dialog = this;
var id = dialog.getValueOf( 'tab1', 'elementidfield1' );
if ( id ) {
CKEDITOR.ajax.post( 'dbget.php', "ajaxrecnum=" + id, null, function( data ) {
editor.insertHtml( data );
} );
}
}
It just hangs and never sends the Ajax request. Anyone help ?
(Ive been following the tutorial "Creating a Simple CKEditor Plugin (Part 1)" my code is based on that)