Re: Custom Button Questions

  •  04-10-2008, 12:31 PM

    Re: Custom Button Questions

    Hi Adam,
     
    Yes, I had done that.  My problem is that scripts are being stripped not by the editor, but by the PasteHTML function itself.
     
    Here's a quick test you can run to see what I mean: 
    1. Open up HowTo/AddDialogs/vb/create_a_custom_dialog.aspx.
    2. Modify the Editor by adding "EnableStripScriptTags=false"
    3. Run it.
    4. Click the "Insert my Custom Text" button.
    5. Type in the following:  Test 123 <script type='text/javascript'></script> Test 456
    6. Click "Insert It"
    7. What you'll get in the Editor is "Test 123 Test 456"
    If the PasteHTML fucntion is in fact stripping out the script tags, perhaps there is an overload of the function which tells it not to do that.  Or maybe a configuration setting?  Or perhaps there is a quick workaround using some custom JavaScript?
     
    Thanks so much for your help!
     
    Aaron
View Complete Thread