Hello I got the following task
In my home page created with web2py I need to embed ACE editor. Then the code written in ace editor needs to be saved somewhere on server side. I copied all ACE needed files to my static folder In my view (html) I inserted the following code with source of course $(document).ready (function () { $('#textArea').each(function () { var textarea = $(this); var mode = textarea.data('editor'); var editDiv = $("<div>", { position: 'absolute', width: textarea.width(), height: textarea.height(), 'class': textarea.attr('class') }).insertBefore(textarea); textarea.css('visibility', 'hidden'); var editor = ace.edit(editDiv[0]); editor.renderer.setShowGutter(false); editor.getSession().setValue(textarea.val()); editor.getSession().setMode("ace/mode/javascript"); editor.setTheme("ace/theme/dawn"); }) }); <textarea name="my-xml-editor" id ="textArea" data-editor="xml" rows="50" cols="50"></textarea> now I need to get the text from this editor to write it into file and save it. I need some direction how to do this. What is the best way? I am a total newbe here so please bare with me. Thank you -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.