Strange...

  •  07-13-2004, 12:14 AM

    Strange...

    I twisted my mind about this one, giving me a headace.  This is a little hard to explain but I give it a try.
     
    <%
    'The strcontent stores the HTML data
    MessageField = strcontent        
    'Create a new editor class object

    Set editor = New CuteEditor       

    'Set the ID of this editor class
    editor.ID = "Editor1"
              
    'Set the initial HTML value of editor control
    editor.Text = MessageField
              
              
    editor.FilesPath = "editor/CuteEditor_Files"
    editor.ImageGalleryPath = "/system/gfx/bilder"
    editor.DocumentPath= "/system/dokumenter"
              
    'You can hide the logo by set ShowLogo to true
    editor.ShowLogo = "false"
              
    'editor.StyleSheetPath = "editor/grey2.css"
    'editor.Width = 740
    'editor.Height = 200
    editor.AutoConfigure = "Minimal"
    editor.Draw()
    Request.Form("Editor1_HTMLContent")
    %>

     
    PROBLEM:
    The editor shows what is stored in the MessageField string, and it update the database whenever I Save, but it does not include what I TYPE in the editor.  It seems like it only passes the MessageField string and ignoring what I type in the editor. 
     
    If I change editor.Text = MessageField to: editor.Text MessageField & "some text "
     
    ..it will add the "some text" to the database, and it will show "some text" in the editor, but changes I do with this text in the editor will be ignored.  Whenever I push save it will add "some text" so it will be "some text some text some text some text......etc"  So it is only passing the MessageField string and ignoring what I manually type in the editor.....
     
    The Form where cuteeditor is used is a part of a complex code  with several include files etc. and Im only upgrading from a different wysiwyg editor  So It will be to much to post here.  But If anyone have experienced similar problems maybe I will understand why this strange thing happen...
     
     
    Best regards,
    Fredski
     
View Complete Thread