That the form that surrounds the instances is being sent.
* Why are both instances being affected?
Because they are both under the same form.
* How is it that my DIV re-appears?
Because it's reloading the page with the form submit. There's no AJAX at all. Simple form submit and page reload.
You should start working with textareas, and when you have all that working then activate CKEditor on top of that. It will be far easier find help asking for simple textareas than asking about how to create a CMS with a specific editor.
Sorry for the "bump" but I think my question has been missed; how can I control what happens when the "save" button is pressed? I have an HTML FORM with a TEXTAREA and no INPUT fields (i.e. no "submit" button), and I want a javascript function to be executed when the "save" button is pressed. How can I do this?
I have tried a few remedies suggested around the internet and haven't found a satisfactory resolution. Shouldn't CKEditor honour the normal form submit? i.e. If I've overridden the submit as follows:
$("#myform").submit(function () { alert("submit function result"); false });
I have a form with 2 text fields and the CKEditor instance on a text area and a couple of hidden fields.
I would like to use the save button in CKEditor to save all of these using a $_POST to php scripts but my only option is a separate submit button which looks a bit untidy.
Re: Difficulties with the "save" button
That the form that surrounds the instances is being sent.
Because they are both under the same form.
Because it's reloading the page with the form submit. There's no AJAX at all. Simple form submit and page reload.
You should start working with textareas, and when you have all that working then activate CKEditor on top of that. It will be far easier find help asking for simple textareas than asking about how to create a CMS with a specific editor.
Re: Difficulties with the "save" button
I take your point about just working with textareas rather than tying myself to a specific editor, and will bear this in mind.
One last question; how can I control what happens when the "save" button is hit?
Re: Difficulties with the "save" button
I have tried a few remedies suggested around the internet and haven't found a satisfactory resolution. Shouldn't CKEditor honour the normal form submit? i.e. If I've overridden the submit as follows:
$("#myform").submit(function () { alert("submit function result"); false });I would expect CKEditor to honour this?
Re: Difficulties with the "save" button
I have a form with 2 text fields and the CKEditor instance on a text area and a couple of hidden fields.
I would like to use the save button in CKEditor to save all of these using a $_POST to php scripts but my only option is a separate submit button which looks a bit untidy.