Disable IMG dialog

Last post 03-01-2010, 1:17 AM by Hajo. 2 replies.
Sort Posts: Previous Next
  •  02-27-2010, 12:44 PM 59035

    • Hajo is not online. Last active: 08-08-2013, 4:27 AM Hajo
    • Not Ranked
    • Joined on 09-19-2007
    • Flevoland, The Netherlands
    • Posts 6

    Disable IMG dialog

    Hello,
     
    I've got a problem with the CuteEditor. I'm using a freshly downloaded version 6.6 of the editor for .NET (framework 2.0).
     
    Problem:
    I would really like to disable the IMG dialog. I'm currently using the editor in a simple message posting application and I only want to support 4 features (Bold, Italic, Underline and Emotions). Through the configuration file I've altered the toolbar to only support these features, I've disabled all pasting options so that only 'simple' text can be entered with little formatting. However, when I insert an emotion and then click the image in the editor I get the IMG dialog, allowing me to alter and specify a different image url, which I don't want to allow.
     
    I've searched this forum on how to disable the image dialog and found a post pointing me to the 'tag.config' file. I've disabled all tags there and this results in somewhat strange behavior. It doesn't prevent the double-click action on the image but shows an empty dialog (no options) with only an OK and Cancel button.
     
    Is it possible to completely disable the image dialog from ever showing up?
     
    I hope you can help me with this problem and point me in the right direction.
     
    Thank you,
    Hajo Dijkstra
  •  02-28-2010, 1:16 PM 59043 in reply to 59035

    Re: Disable IMG dialog

    To disable the properites dialog, please open the Constants.js file and  modify the following code: 

    // By default, when users double click a control, a tag property dialog will open. Set it to true if you want to disable this feature.
    var DisableDoubleClickEvent = false;

    to:

    // By default, when users double click a control, a tag property dialog will open. Set it to true if you want to disable this feature.
    var DisableDoubleClickEvent = true;

    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

  •  03-01-2010, 1:17 AM 59050 in reply to 59043

    • Hajo is not online. Last active: 08-08-2013, 4:27 AM Hajo
    • Not Ranked
    • Joined on 09-19-2007
    • Flevoland, The Netherlands
    • Posts 6

    Re: Disable IMG dialog

    Thank you Adam, this works perfectly!
View as RSS news feed in XML