Problem in using tinymce editor


Hello everybody,

I have a problem in using tinymce editor. I successfully I loaded the
tinymce as follows ;

<%= javascript_include_tag :defaults %>

// And textarea like


Here the problem I faced as follows :

  1. I can simply type the text. But I dont know how to get the textarea
    value. Because here I want to save the content of the textarea into
    mysql table when the press the enter key. But I didn’t work.

  2. I used a function " onKeyPress=“submit_on_enter(event)” for the above
    work. But Its didn’t work.

Can any one clarify my doubts. Please.

Thanks in advance,