I embed tinymce [http://www.tinymce.com/] in twitter bootstrap form so that the user can enter formatted text that I can save in the postgres database.
The problem I am facing is that I get plain text when submitting the form. Can someone help me get the formatted text as a string that I can save and repeat on the html page.
Here is my code [Note: it uses HAML]
%html{:lang => "en"} %head %meta{:charset => "utf-8"} %link{:href => "//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css", :rel => "stylesheet"} %script{:src => "//tinymce.cachefly.net/4.0/tinymce.min.js"} :javascript tinymce.init({selector:'textarea_format'}); %body .container %legend Post a New Job .well %form
It looks like I can use tinyMCE.get ('content id'). getContent (), but I'm not sure how?
I am very new to java-script. Can someone please post the required code change and some explanation.
thank
javascript web-applications postgresql forms tinymce
codeObserver Jun 22 '13 at 6:14 2013-06-22 06:14
source share