<% 'Include the DevEdit class file %>
<% ' Create a new DevEdit class object set myDE = new DevEdit myDE.DisableXHTMLFormatting myDE.EnableGuidelines ' Set the name of this DevEdit class myDE.SetName "myDevEditControl" 'Set the path to the "de" folder 'The path can be a relative or absolute path. A relative path however CANNOT contain '../' 'eg. Absolute path -> '/mycms/devedit/de' ' Relative path -> 'mycms/de' ' Relative path -> 'de' SetDevEditPath "de" ' Set the editor to snippet mode (i.e. edit a piece of a HTML page ' and not a whole page with HTML and BODY tags etc) myDE.SetDocumentType de_DOC_TYPE_HTML_PAGE ' Setup an external stylesheet (note that this stylesheet MUST be ' on the same domain as where DevEdit is installed) ' myDE.SetSnippetStyleSheet "detest_style_sample.css" ' Set the initial HTML value of our control val = "" ' If the form has been submitted, show that value. If not, generate a value if myDE.GetValue(false) <> "" then val = myDE.GetValue(false) else val = "This is sample font #1

" val = val & "This is sample font #2

" end if myDE.SetValue val ' Display the DevEdit control. This *MUST* be called between and
tags myDE.ShowControl "90%", "80%", "/images" 'Display the rest of the form %>