1. Standard memberMayharm
    the Mad
    Jupiter
    Joined
    23 Jun '04
    Moves
    2234
    22 Dec '04 10:27
    Would it be possible to put in some buttons, which when clicked would automatically add the bold/italic tags to each end of any highlighted text?

    MÅ¥HÅRM
  2. London
    Joined
    05 Mar '03
    Moves
    6047
    22 Dec '04 12:03
    I'm not sure about this, but I think that highlighting is something your browser knows about, but the server doesn't. If so, the simple answer would be 'no'. (You can see a similar problem in that smileys always get inserted at the end of the text, no matter where the cursor is - if you decide you want a smiley at the end of a sentence you're revising, you have to cut&paste)

    There might be a more complicated answer, along the lines of having a button that executes Javascript code within the browser, but I strongly suspect that this would be an area where the Javascript needed would vary from one browser to the next. That is, it might be possible to do something for IE users but not Firefox, or the code would have to detect what browser you were using... Maybe thire could include it in the Firefox theme he keeps dreaming of๐Ÿ˜€

    On the other hand, a button that added [ b]your bold text goes here[ /b] or something similar would be dead easy to provide.
  3. Standard memberMayharm
    the Mad
    Jupiter
    Joined
    23 Jun '04
    Moves
    2234
    22 Dec '04 12:47
    I'm not sure I understand your point about it being visible to the server. I'm not suggesting it be updated at that end, I'm suggesting that when writing your post you can have the tags that you would normally type manually be put in for you.

    I know another site where they implemented this exact feature, however I dont know whether they were using the same scripting language, so it may not be possible.

    Come to think of it, I'm getting a sense of deja vu...have I brought this up before?

    MÅ¥HÅRM