Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Sep 2005
    Location
    Latina (Italy)
    Posts
    73
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Formattable text boxes

    Hi all!!

    I've built some time ago a bb.code generator in Javascript.
    I'd like to make something similar... but a bit more complicated, a step beyond maybe: is there a way to make text into the "box" formattable?

    I mean, if I press the "B" button after selecting some words, I'd like they really appear as bold, not just circumdated by meta-tags like[*]...[/*].

    Just gimme the key to begin, not the whole code, I don't want to annoy you !

    Thanx in advance

  • #2
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You could look at how some existing scripts do it.

  • #3
    New Coder
    Join Date
    Sep 2005
    Location
    Latina (Italy)
    Posts
    73
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanx a lot!!

  • #4
    New Coder
    Join Date
    Sep 2005
    Location
    Latina (Italy)
    Posts
    73
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Maybe someone could get a help by this post of mine:
    it seems these links are really useful cause they explain how the main browser make you implement this kinda stuff:
    Mozilla: http://www.mozilla.org/editor/midas-spec.html
    M$IE: http://msdn.microsoft.com/library/de...tml_editor.asp
    while Opera doesn't make this possible, even if it's promised Opera 9 will support this feature.

    I'll study those docs and hope they'll help me enough!!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •