Announcement

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

#1 2005-06-07 02:39:41

sammy
Xinha Community Member
Registered: 2005-04-20
Posts: 11

Save Button

Hi All,
Im currently using Xinha with PHP and it seems to work fine, one thing that bugs me is that the update buttons are outside the editor. I know there is a save button I just dont know what to do to make it work on the main Xinha toolbar anyone got a solution for me.

Cheers,
Sam

Offline

#2 2005-06-07 05:14:28

niko
Xinha Authority
From: Salzburg/Austria
Registered: 2005-02-14
Posts: 338

Re: Save Button

take a look in htmlarea.js line 433
(currently no better documentation is avalibalbe)
 
as action you might use this to submit the form:
function(editor) { editor._textArea.form.submit(); }


Niko

Offline

#3 2005-06-08 00:22:10

sammy
Xinha Community Member
Registered: 2005-04-20
Posts: 11

Re: Save Button

Niko,

thanks for your response, I added the information and have managed to get it to submit, however the changed content in the textarea doesnt seem to be coming through? What have I missed?

Cheers,
Sam

Offline

#4 2005-06-08 03:15:42

niko
Xinha Authority
From: Salzburg/Austria
Registered: 2005-02-14
Posts: 338

Re: Save Button

sorry, use:
function(editor) { editor._textArea.form.onsubmit(); editor._textArea.form.submit(); }


Niko

Offline

#5 2005-06-11 21:13:47

sammy
Xinha Community Member
Registered: 2005-04-20
Posts: 11

Re: Save Button

Thanks Niko works like a dream...

Offline

#6 2005-06-11 21:23:56

sammy
Xinha Community Member
Registered: 2005-04-20
Posts: 11

Re: Save Button

Niko,

I have another quick question . How do I now disable (grey out) the save button when my users dont have authority to save?What do I have to set in the html for the save button to be inactive?

Cheers,
Sam

Last edited by sammy (2005-06-11 21:25:22)

Offline

Board footer

Powered by FluxBB