Cannot modify table properties if SetSecurityAllowUpload is set to false

  •  11-29-2005, 2:42 PM

    Cannot modify table properties if SetSecurityAllowUpload is set to false

    Ok, this is from way out of left field. The editor was working fine, we updated to version 5 and we started getting an error on the page when trying to use any of the buttons that caused pop-up layers (like clean-up HTML, insert images, etc). I had to comment out the following line for it to work:
    ' 'pageContentEditor.SetSecurityAllowMove(False) 'Removed 2005/11/24 (Dave Moon) - causes an error for controls...??

    That's fine and dandy (hmmm...I can't change this font back to black now...another bug for another question), we can live without this. Everything worked fine, and then the next day, it stopped working again, so I commented out the following lines on Monday:

    ' pageContentEditor.SetSecurityAllowCopy(False)
    ' pageContentEditor.SetSecurityAllowCreateFolder(False)
    ' pageContentEditor.SetSecurityAllowDelete(False)
    ' pageContentEditor.SetSecurityAllowDeleteFolder(False)
    ' 'pageContentEditor.SetSecurityAllowMove(False) 'Removed 2005/11/24 (Dave Moon) - causes an error for controls...??
    ' pageContentEditor.SetSecurityAllowUpload(False)

    Not a problem, everything started to work. We noticed some odd bugs, (like trying to set styles, changing colors back to black) and Monday I noticed that 5.1 was released on Friday. I upgraded. Everything was fine, I was setting styles for tables, not a problem. Today, I was trying to wrap everything up, set up some final styles, and then this time, opening a table and trying to set cell properties causes a javascript error on line 2, character 19621 saying "Invalid syntax." This time, I found the fix to be to remove this:
    'pageContentEditor.SetSecurityAllowUpload(False)
     
    The only problem is, we *CANNOT* allow anyone to upload images. We need to be able to disallow uploads. And what worries me, is that even if I allow this line, tomorrow, am I going to have to comment out more lines? Each day I've used it, I've had to comment out more lines of settings to get the editor to work.

    This is how the editor is placed on the page, inside the EditItemTemplate of a DataList.
    <CE:Editor id="pageContentEditor" EditorWysiwygModeCss="./webSiteStyles/Styles.css" runat="server"
                                                          AllowUpload="false" FontColor="black"
                                                          ConvertHTMLTagstoLowercase="false" BreakElement="p"
                                                          MaxDocumentSize="0" MaxFlashSize="0" MaxImageSize="0"
                                                          height="600" width="550" style="width:550px; height:600px" />
    Everything was working fine up until the 24th, and then everything started to go downhill from there.
     
View Complete Thread