How to insert text from custom button

  •  06-13-2005, 4:26 PM

    How to insert text from custom button

    Hi there,
     
    I'm trying to make a custom button that inserts a dynamic piece of text into the editor, but I can't for the life of me figure out how to do that.  Here's what I want to do, in essence:  connect a button on the toolbar to a string, like hello world.  When I click on the button, the text gets inserted into the editor at the point of the cursor.  I don't know how to do this, and the javascript files included seem to be obfuscated to protect the code. 
     
    Does anybody know how to do what I'm looking for?
     
    Just a simple "Insert Hello World" button?
     
    Dan
View Complete Thread