View Single Post
  #2 (permalink)  
Old 07-23-2008, 03:58 AM
felipedgarcia felipedgarcia is offline
D-Web Trainee
 
Join Date: Jul 2008
Posts: 1
felipedgarcia is on a distinguished road
Default Re: Freerte_v1 editor work for all browser but i can't get content

Hello guy... I also had to use this editor... To retrieve its content you have to add this code:

<form action="#" method="get">
<script src="editor/js/richtext.js" type="text/javascript" language="javascript"></script>
<script src="editor/js/config.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript">
initRTE('', 'editor/examples/example.css');
</script>
<input type="submit" onClick="javascript:takeContent();" value="Submit Form">
</form>

<script type="text/javascript">
function takeContent() {
alert(getXHTML(trim(document.getElementById(rteFor mName).value)));
}
</script>


But it's impossible to take the value of the content if you don't put in the Code Mode first.

To know more about this editor enter this site:
Free Online Javascript WYSIWYG Rich Text Editor

Bye
Reply With Quote