View Single Post
  #10 (permalink)  
Old Oct 19th, 2004, 10:55
spinal007's Avatar
spinal007 spinal007 is offline
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,649
Blog Entries: 1
Thanks: 0
Thanked 4 Times in 4 Posts
<blockquote id="quote" class="ffs">quote:<hr height="1" noshade="noshade" id="quote" />Originally posted by benbacardihow did you make one that updates it automatically like that<hr height="1" noshade="noshade" id="quote" /></blockquote id="quote">
what do you mean?

basics of editors: (as far as I know)
- manipulate the code
- show result so user "thinks" he's changing the text to bold while in fact he's placing "[b]"tags around it

simple implementation:
- use a textarea for the code
- create buttons that will insert whatever formatting to the code (just like the editor in this forum)
- use jscript to write the content of the textarea onto the document so you can see the HTML result. for this, use textRange.pasteHTML([textarea contents]);