Custom Dialog Integration

Last post 01-19-2005, 5:21 AM by jeff330ci. 2 replies.
Sort Posts: Previous Next
  •  01-18-2005, 2:42 PM 3551

    Custom Dialog Integration

    My site has some unique requirements that necessitated the use of a few custom dialogs (InsertImage, InsertLink, and InsertTemplate). I got everything working very well with CuteEditor version 3. The code behind CuteEditor version 4 is very different and I have found the task of migrating to be difficult because I have not been able to integrate my custom dialogs completely with version 4.

    While your samples show how to call a custom dialog and then insert its resulting HTML (via editor.ExecCommand("PasteHTML",false,html);), I have found that technique works fine if the purpose of the dialog is ONLY to insert HTML (as is the case with InsertTemplate).

    But there is difficulty with InsertImage and InsertLink: While they insert HTML, there is more integration work to be done for when the user wants to edit the photo (or Link) properties AFTER they have initially inserted the photo (or Link). When a user double-clicks on a previously inserted photo, OR selects an inserted photo and then clicks on the InsertImage button - the InsertImage dialog needs to open AND display the selected photo and its various properties in my custom dialog. I accomplished this result in version 3 - but find it very difficult in version 4.

    I need to make a decision about upgrading my system and users to version 4. If I cannot fully integrate my custom dialogs, then I'll have to stay with version 3 indefinitely. I'm hoping to go to version 4 ASAP, though. Is there some sample that shows how to accomplish my objectives? I have searched read the documentation extensively and have studied the samples and have not found what I need. I have also found the JavaScript to be apparently obfuscated in a number of places so I can't tweak it to meet my needs.
     
    What do you suggest I do? Will full integration (as described above for the InsertImage and InsertLink dialogs) with custom dialogs be more easily accomplished in future versions of CuteEditor? Or, is it available now and I have just missed something?
     
    Thanks!
  •  01-19-2005, 12:47 AM 3561 in reply to 3551

    Re: Custom Dialog Integration

    There is dialog configuration file named tag.config. You can find it in CuteSoft_Client/Cuteeditor/Dialogs folder.
     
    The following code specifies which file will be used when the user double click the images in the editor.
    <add pattern="IMG" tab="IMG" text="[[Image]]" control="Tag_Image.ascx" />

    You can change its value and and point it to your own custom dialog.

    Hope it helps.

    Let me know if you have any further questions.


     
     

    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

  •  01-19-2005, 5:21 AM 3572 in reply to 3561

    Re: Custom Dialog Integration

    Thanks Adam...
    I tried that earlier and my custom dialog was not opened (instead, the CE dialog opened as if I had made no change to tag.config). I tried a couple of variations of the file name - including the fully qualified path to my custom dialog - but still no effect.
     
    Does CE assume or require that my custom dialog exists in the same folder as Tag_Image.ascx?
View as RSS news feed in XML