What do you want it to do? Bold text? Or just do some processing before or as an alternate to the normal save function?
There's an OnBeforeSelectionChange() (?) function to intercept the Save process. Otherwise, delete the Save button from the Toolbar config list and replace it with something else (including your own custom plug-in that uses the Save icon, if that's what you want...)
I just want to make it save then navigate somewhere else. I am going to close down the save screen after it saves automatically, then just add a command that says once saved goto URL
Yes, how the heck is saving done?? I don't get it, I've gone through pages and pages in this forum without success.
Currently, I am saving the HTML of the fckEditor on every Page_Load, as the 'Save' button submits the form. However, this seems juvenile and unprofessional. How can I utilize something like the __doPostBack function where I can pass in the Id and Argument so that I can retrieve these values in the code behind and test for them properly? I want to click save on the save icon in the toolbar and have it postback to the server with a saveId and/or specific argument that I can look for to tell when the 'save' button has been clicked. I've read several posts similar to this, but it seems no-one is able to actually do it.
I get that the 'save' button is simply a submit button. I can see in the fckConfig.js file where the form is submitting:
FCKSaveCommand.prototype.Execute = function() {
var A = FCK.GetParentForm();
if (typeof (A.onsubmit) == 'function') {
var B = A.onsubmit();
if (B != null && B === false) return;
};
if (typeof (A.submit) == 'function') A.submit();
else A.submit.click();
};
Yeah i get that can change the A.submit to call my own function to perform the postback. However, when i substitue the A.submit to use __doPostBack('myIdOfTheCtrlHere', 'myArgumentHere'), the __doPostBack function is unrecognized.
Re: changing the save button
There's an OnBeforeSelectionChange() (?) function to intercept the Save process. Otherwise, delete the Save button from the Toolbar config list and replace it with something else (including your own custom plug-in that uses the Save icon, if that's what you want...)
Re: changing the save button
that says once saved goto URL
Re: changing the save button
Re: changing the save button
Currently, I am saving the HTML of the fckEditor on every Page_Load, as the 'Save' button submits the form. However, this seems juvenile and unprofessional.
How can I utilize something like the __doPostBack function where I can pass in the Id and Argument so that I can retrieve these values in the code behind and test for them properly?
I want to click save on the save icon in the toolbar and have it postback to the server with a saveId and/or specific argument that I can look for to tell when the 'save' button has been clicked. I've read several posts similar to this, but it seems no-one is able to actually do it.
I get that the 'save' button is simply a submit button. I can see in the fckConfig.js file where the form is submitting:
Yeah i get that can change the A.submit to call my own function to perform the postback.
However, when i substitue the A.submit to use __doPostBack('myIdOfTheCtrlHere', 'myArgumentHere'), the __doPostBack function is unrecognized.
Help please.