I want to add to some form the code editor EditArea
I connect and use it in this way:
<script type="text/javascript" src="editarea/edit_area/edit_area_full.js"</script> <script type="text/javascript"> editAreaLoader.init({ id : "text" // textarea id ,syntax: "php" // syntax to be uses for highgliting ,start_highlight: true // to display with highlight mode on start-up ,replace_tab_by_spaces: "2" ,allow_resize: "both" });
<textarea id=text name=text cols="80" rows="15" style='width: 100%;'></textarea>
The problem is that I can not pull the text out of the text box in order to write it to a file. To do this, apparently, you need to use a specific function. I understand that this one:
But how exactly - I can not understand. In js is not strong at all. Suddenly, who faced it with this code editor, or with some other. Or just know js. Please help me figure out how to pass text from the EditArea text field to the php variable.