contenteditable="true" being striped when switching modes

Last post 08-14-2008, 8:44 PM by nwalker. 2 replies.
Sort Posts: Previous Next
  •  08-14-2008, 4:15 AM 42961

    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
     
     
     
     
     
  •  08-14-2008, 1:10 PM 42972 in reply to 42961

    Re: contenteditable="true" being striped when switching modes

  •  08-14-2008, 8:44 PM 42986 in reply to 42972

    Re: contenteditable="true" being striped when switching modes

    Hmmm.  So it does.
     
    Well, this still doesn't work in my app.  Is there a setting that could possibly be causing this behavior?  Here is the definition I am using in the ASPX page:
     
    <CE:Editor id="edMain"
        EditCompleteDocument="true"
        EnableStripIframeTags="false"
        EnableClientScript="true"
        EnableStripLinkTagsCodeInjection="false"
        EnableStripScriptTags="false"
        EnableStripStyleTagsCodeInjection="false"
        AllowPasteHtml="false"
        ThemeType="Office2007"
        Height="450" Width="745" runat="server" ></CE:Editor>
     
    Other than that, it is a standard out of the box installation as I am still learning how everything works. 
     
    Thanks,
    --nick
     
     
View as RSS news feed in XML