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
Hi
have a look here http://docs.fckeditor.net/FCKeditor_2.x ... Script_API and create a FCKeditor_onComplete function that sets the onsubmit like in the example. Then you have to place the editor inside a form. That should work:
Example:
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:
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
The submit button is simply acting as submit the form, it's designed for those forms without an explicit submit button and you can customize the submitting by assigning an 'onsubmit' on the form element, Not sure if this helps:
Re: How to save