contenteditable="true" being striped when switching modes

  •  08-14-2008, 4:15 AM

    contenteditable="true" being striped when switching modes

    Hello,
     
    I am trying to make use of the contenteditable tag for some template work and am running into a problem.  Essentially, I am trying to wrap all of the content in an uneditable DIV tag and then just specify the portions inside that tag that are editable.
     
    When I enter the following in HTML mode, everything works as expected upon switching back to Normal mode:
     
    <div contenteditable="false">
            <div contenteditable="true">test</div>
    </div>
     
    But when I go back to HTML mode again, the contenteditable="true" tag is being stripped and tus everything becomes uneditable again upon switching back to Normal mode because it is inheriting the parent DIV tag:
     
    <div contenteditable="false">
            <div>test</div>
    </div>
     
     
    Any ideas on how to correct this?
     
    Thanks,
    --nick
     
     
     
     
     
View Complete Thread