RichDropDownList Custom Action Issue

Last post 07-13-2005, 2:37 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  12-17-2004, 10:21 AM 3078

    RichDropDownList Custom Action Issue

    I'm using the RichDropDownList to perform custom event. One is to replace the entire content with some html.

    So I use the Editor Client Side API to perform a series of action.


    Dim oToolsControlImport As CuteEditor.RichDropDownList

    oToolsControlImport = CType(oContent.ToolControls("Import").Control, CuteEditor.RichDropDownList)

    oToolsControlImport.Attributes("onchange") = "var oEditor = CuteEditor_GetEditor(this); oEditor.ExecCommand('SelectAll'); oEditor.ExecCommand('Delete'); CuteEditor_DropDownCommand(this,'PasteHTML')"

     
    This working perfectly!

    Not I wanted to added a Confirmation Box and the problem start.
    oToolsControlImport.Attributes("onchange") = "if (!window.confirm('You sure?')) { return; }var oEditor = CuteEditor_GetEditor(this); oEditor.ExecCommand('SelectAll'); oEditor.ExecCommand('Delete'); CuteEditor_DropDownCommand(this,'PasteHTML')"
     
    The MessageBox appear, it also prevent the replace to be done BUT the Dropdown do not repaint correctly. It appear that CuteEditor_DropDownCommand must be called.
     
    My suggestion would be to modify the function to accept NO action CuteEditor_DropDownCommand(this) or a nothing-to-do action CuteEditor_DropDownCommand(this,'null')".
     
    Any Idea how I could deal with this?
     
    By the way, I really like the new API for security/culture/toolbar.
  •  07-13-2005, 2:37 AM 8649 in reply to 3078

    Re: RichDropDownList Custom Action Issue

    Jcmorin,

    The client side API is avaiable in the latest download package.

    Demo:
     
    http://cutesoft.net/example/JavaScript-API.aspx

    Download:

    http://cutesoft.net/Downloads/default.aspx

    Let me know if you have any questions or suggestions.

     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML