Cute Editor FAQ - How TO: Dreamweaver MX - Easy Insert Using Server Behaviors

Last post 04-26-2007, 6:07 AM by Sky_Chief. 1 replies.
Sort Posts: Previous Next
  •  04-26-2007, 6:05 AM 28859

    Cute Editor FAQ - How TO: Dreamweaver MX - Easy Insert Using Server Behaviors

    If you use Dreamweaver Server Behaviors and Insert Record you may be surprised that it doesn't see the editor.
     
    There is an example file that explains how to write code to make an insert into a database, but here is an alternate method use the built in Dreamweaver Insert Function.
     

    Create the editor as you normally would and note the name that you give it.

     
    Here is an example:
    <%
       Dim editor
       Set editor = New CuteEditor
       editor.ID = "Editor1"
       editor.ConfigurationPath = "/CuteEditor_Files/Configuration/AutoConfigure/Upload_Image.config"
       editor.ThemeType = "Office2000"
       editor.Text = "Preview Box"
       editor.FilesPath = "/CuteEditor_Files"
       editor.EditorBodyStyle = "font:normal 12px arial;"
       editor.EditorWysiwygModeCss = "asp.css"
       editor.Draw()
                
       ' Request.Form(ID) access from other page
      %>
     
    Go to the Bindings Panel and choose Request Variable
    A pop up will request two items: Choose Request.Form for the first and enter your editor id name for the second
     
     
     
    Insert an invisible form element on your page within the form area, click on it - there is an icon that looks like a lightning bolt. This icon will offer you choices when you click on it. Choose the Request item that you created in the step above.
     
    Now when you use the Dreamweaver Insert Behavior it will see the hidden form element and capture the editor content upon submission.
     
    Sky Chief
     

    Self praise is no recommendation
  •  04-26-2007, 6:07 AM 28860 in reply to 28859

    Re: Dreamweaver MX - Easy Insert Using Server Behaviors

    Also wanted to mention that it also applies to Dreamweaver MX 2004.
     
    Sorry that is the most updated version I own so I don't know about the rest
     
    Good luck,
    Sky Chief   

    Self praise is no recommendation
View as RSS news feed in XML