Opened 17 years ago

Last modified 12 years ago

#863 confirmed New Feature

Save button responding to changes

Reported by: anonymous Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: Cc:

Description

Hi there, it would be a really nice default behavior if the save button could "dim" immediately after a save, and reactivate on a change to the editor contents. In other words, behaving like typical desktop apps.

(In my case, I am submitting the form via an iframe without refreshing the whole page.)

Similarly, it would be nice if I could programmatically dim/reactivate the Save button -- such that when another field in my form changes, I can reactivate the Save button in the editor.

Thanks,

  • Matt

Matt_Sherman@…


Moved from SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=1422914&group_id=75348&atid=543656

Change History (3)

comment:1 Changed 17 years ago by Martin Kou

Reporter: changed from Martin Kou to anonymous

Hi Matt, you could get that functionality for Ajax implementation or whatever form submitting with your custom javascript as you need. Make use of the "FCKeditor oncomplete event" to redefine the onsubmit of your form this way:

FCKeditor_OnComplete( editorInstance ){
	$('myform').onsubmit = function() {
		mySubmittingFuction(editorInstance);
		return false;
	}
}

Passing "editorInstance" that way will let you get the changed editor content.

Then you just need to have a minimal 'myform' for the "fckeditor save icon" to work, though is stopped because of the false return:

<form id=myform>
//here your fckeditor
</form>

Hope that works,

  • gas

gasgarage@…


Moved from SF. Original poster: Anonymous

comment:2 Changed 16 years ago by Wojciech Olchawa

Keywords: HasPatch added

comment:3 Changed 12 years ago by Jakub Ś

Keywords: SF HasPatch removed
Status: newconfirmed
Version: 3.0
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy