Page 1 of 1

can't see the "submit button" with text editor

Posted: Fri Nov 09, 2007 12:11 pm
by Segolas
Hello,

I'm writing a component, and I used the rich text editor (tinymce, gck etc etc) but i cant display the submit button!

when I use the same editor in another component it works fine, when I try the same in my component it disappear...

I'm using this code:

Code: Select all

<script language="javascript" type="text/javascript">

      function submitbutton(pressbutton) {

            <?php getEditorContents( 'editor', 'message' ); ?>

            submitform( pressbutton ); // CAN'T SEE IT
                                <?php echo "And can't see this echo too..." ;?>

      }

      </script>



I' also try with a classic but something happens to images. It works fine with text and html, but image urls is wrong, so I cant display images using the standard html button.

I think I MUST use the javascript code, but how? and why i can't see the submit button? (I think is that one which looks like a floppy disk...)


Any idea???

Re: can't see the "submit button" with text editor

Posted: Fri Nov 09, 2007 4:13 pm
by Segolas
Another question:

is it possible to send the content of a form (like a wysiwyg editor) with the stadard html code:

Code: Select all

<input type="submit" value="send">


or the only way is to use the javascript code???