contenteditable="false" is not working in some scenario

Last post 08-31-2011, 3:54 PM by bpeery. 2 replies.
Sort Posts: Previous Next
  •  08-11-2011, 3:46 PM 69500

    contenteditable="false" is not working in some scenario

    Hi,
     
    We use CuteEditor.net 6.6. We use the following property to prevent user from modifying some area.
     
    contenteditable="false" unselectable="ON"
     
    However, when user use "Delete" button on the keyboard, user is able to delete the "not editable" area on "Normal" tab.
     
    Here is how to reproduce this problem:
     
    1) Copy the following html in the html tab
     
     <html>
        <head>
        </head>
        <body>
            <div id="4" contenteditable="false" unselectable="ON" isrequired="0"><strong>Title</strong></div>
            <div><br />
            </div>
            test0<br />
            <div id="5" contenteditable="false" unselectable="ON" isrequired="1"><strong>Description</strong></div>
            <div><br />
            </div>
            test1<br />
            <div id="6" contenteditable="false" unselectable="ON" isrequired="1"><strong>Articlebody</strong></div>
            <div><br />
            </div>
            test2<br />
        </body>
    </html>
     
    2) Go to "Normal" tab, notice the "Title", "Description" and "ArticleBody" are not editable.
     
    3) put cursor in front of test(), press "Delete" button on keyboard,  notice you can delete "Description"
     
    I can reproduce this problem on this editor that I am using to type the forum. Is there anything that I can do to prevent this issue. This is very critical for us.
     
    Thanks in advance.
    Qian 
     
     
     
  •  08-31-2011, 1:57 AM 69885 in reply to 69500

    Re: contenteditable="false" is not working in some scenario

    Qian,
     
    Which browser are you using? Can you produce the problems in the following example?
     

    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

  •  08-31-2011, 3:54 PM 69894 in reply to 69885

    Re: contenteditable="false" is not working in some scenario

    The example you provided does not appear to be a valid reference for this issue because the source does not contain anything with contenteditable="false" parameter.  The problem is that when source contains 
    contenteditable="false" that a user can go to the HTML view, perform a CTRL+A and delete everything including anything that is supposed to be protected by 
    contenteditable="false"
View as RSS news feed in XML