Hi
I'm just starting out trying to get FCK Editor working in my .Net app, but I can't find out how to handle the save button in the toolbar? I've looked all through the documentation, but I can't find anywhere that talks about it.
Could someone please explain how I can handle/implement this, or else point me in the right direction, cos I feel like I'm missing something incredibly obvious here.
Thanks,
Matt
I'm just starting out trying to get FCK Editor working in my .Net app, but I can't find out how to handle the save button in the toolbar? I've looked all through the documentation, but I can't find anywhere that talks about it.
Could someone please explain how I can handle/implement this, or else point me in the right direction, cos I feel like I'm missing something incredibly obvious here.
Thanks,
Matt

Re: How to save
http://docs.fckeditor.net/FCKeditor_2.x ... Script_API
function onSave() { alert('juhu!'); return false; } /** * called when FCKeditor is done starting.. * @param {Object} FCKeditor the instance that has */ function FCKeditor_OnComplete( editorInstance ){ editorInstance.LinkedField.form.onsubmit = onSave; }Re: How to save
Re: How to save
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.
Help please.
Re: How to save
youform.onsubmit = function() { return yourCustomProcessingResult; // A 'false' will prevent editor from submitting the form. }Re: How to save