View Full Version : How to dynamically enter text in HTML?
jalil
04-29-2009, 04:32 PM
How can I type text dynamically inside the body of my html document without using elements such as textarea? I basically like to show where the cursor is and let users just type and format text. Something like what you can do in Google Docs.
Thanks,
-J
Medyman
04-29-2009, 06:17 PM
Google Docs is a very sophisticated application. Its a bit naive to attempt to replicate and probably not necessary for the functionality you need.
Just use a textarea and use CSS to make it invisible - remove border, background, etc... No one will be the wiser.
jalil
04-30-2009, 06:31 PM
My problem with using TextArea is I need to put text with html tags in it and want the text to be processed as it happens if I put it in the body of the html document. If I do this using TextArea, it does not process it.
What do you recommend I do?
Thanks for your help,
-J
djr33
05-01-2009, 05:09 AM
That's a paradox:
You want people to type in code.
You want people to see the results.
If you're trying to create a WYSIWYG editor, you can look at a couple scripts available on the site (search for OpenWYSIWYG for example).
But this is very complex and there are a few ways to work around it, but nothing too easy.
Medyman
05-02-2009, 01:14 AM
Do you mean something like this (http://fundisom.com/live_preview.html)? or this (http://htmledit.squarefree.com/)?
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.