I am trying to save my CKEditor text to my database. I have the following:
Code:
<textarea id="editor1" name="editor1">Text Here</textarea>
Code:
<input type="submit" name="submit" id="submit" value="Save" onclick="submit();" />
Code:
function submit()
    {
    var textbox= CKEDITOR.instances.text.getData();
    $.ajax({
            type: "POST",
            url: "result.php",
            data: "textbox="+textbox,
            error: function(){

              alert('error');
          },
                success: function(data){
                alert('good');
      }
      });
It does not retrieve the content though. Any ideas on how to do this?