Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2007-06-25 12:31:46

Ecco
Xinha Community Member
From: Netherlands
Registered: 2005-03-08
Posts: 48
Website

press the SaveSubmit-button

Amigos!

Is there a way to press the button of SaveSubmit with javascript, or any other plugin's button?

Cheers,
Ecco

Offline

#2 2007-06-25 15:50:04

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: press the SaveSubmit-button

var editor = this; // inside a plugin OR
var editor = xinha_editors.yourEditor; // from JS outside

editor.plugins.SaveSubmit.instance.save(editor); // calling the plugin's function OR
editor._toolbarObjects.savesubmit.cmd(editor);  // calling the button's action

Many roads lead to Rome smile

Last edited by ray (2007-10-23 15:08:03)

Offline

#3 2007-06-29 11:06:08

Ecco
Xinha Community Member
From: Netherlands
Registered: 2005-03-08
Posts: 48
Website

Re: press the SaveSubmit-button

Cool, Ray, thanks a lot!

Whenever a user wants to save an unknown number of texts in an unknown number of Xinha's, I just press all the SaveSubmits!

Offline

Board footer

Powered by FluxBB