Custom Button

  •  02-23-2005, 2:37 PM

    Custom Button

    I have created a custom button, that when clicked will:
    1) If text is higlighted, delete the selected text and replace with "Test Text"
    2) If NO text is highlighted it will just insert "Test Text" where the cursor is located
     
    The problem I am having is when text is selected, the selected text is not being deleted.
    I am using the _Format(editor,'Cut'); to cut out the selected text, but it is not working.
     
    We are using CuteEditor v3.0.
    Here is the sample page I put together:
View Complete Thread