Can I Prevent/Disable Highlighting text in Cute Editor?

Last post 11-08-2006, 12:41 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  11-08-2006, 10:50 AM 24142

    Can I Prevent/Disable Highlighting text in Cute Editor?

    Hello CuteSoft Team,
        I have a business requirement to disable highlighting of the text displayed in Cute Editor.
    So far I was able to disable Browser Context Menu (right click) and also disable Select(highlighting of the text) on
    my web page, but I cannot control highlighting of the text inside Editor - it is still there....
     
    Could you please help me with my problem - is it possible at all?
    It is very important so I appreciate your suggestions very much,
    thank you.
     
    Halina
  •  11-08-2006, 12:41 PM 24148 in reply to 24142

    Re: Can I Prevent/Disable Highlighting text in Cute Editor?

    Halina,
     
    Yes, it's possible.
     
    Please follow the steps below:
     
    Step 1:
     
    <body onload="setTimeout(NoHighlight,1000);">
     
    Step 2:
     
    function NoHighlight()

        var editor1 = document.getElementById('<%=Editor1.ClientID%>');

         //Get the editor content 
        var editdoc=editor1.GetDocument();  
        
        // attach Event
        if(editdoc.attachEvent)
         editdoc.attachEvent('onselectstart',new Function('return false;'));
        else if(editdoc.addEventListener)
         editdoc.addEventListener('selectstart',new Function('return false;'),true);
     
    That will resolve your problems.

    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