SamohtVII Posted April 10, 2013 Share Posted April 10, 2013 Is there an alternative to 'textarea' that will keep simple formatting like new lines?Also how can i make a text area have spell check? thanks Link to comment Share on other sites More sharing options...
Don E Posted April 10, 2013 Share Posted April 10, 2013 This may be of some interest to you: http://www.tinymce.com/ Link to comment Share on other sites More sharing options...
SamohtVII Posted April 10, 2013 Author Share Posted April 10, 2013 That is nice but I forgot to mention that the form submits to an sql table. And when I print the data out it gives me the <p> and <b> etc. Is there someone I can format when i SELECT the data from a database?Just asking so not drama if it requires a lot of effort.ty Link to comment Share on other sites More sharing options...
justsomeguy Posted April 10, 2013 Share Posted April 10, 2013 Textarea elements do submit newlines. But browsers ignore newlines in HTML code. If you want to display new lines as HTML line breaks then you need to convert the newlines to <br> tags when you print the text on the page. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now