<%@ codepage="65001" language="VBScript" %> <% Option Explicit %> <% ' You must set "Enable Parent Paths" on your web site ' in order for the above relative include to work. ' Or you can use #INCLUDE VIRTUAL="/full path/ckeditor.asp" %> Sample - CKEditor

CKEditor Sample

Output


<% ' Create class instance. dim editor, initialValue, code, textareaAttributes set editor = New CKEditor ' Do not print the code directly to the browser, return it instead editor.returnOutput = true ' Path to CKEditor directory, ideally instead of relative dir, use an absolute path: ' editor.basePath = "/ckeditor/" ' If not set, CKEditor will default to /ckeditor/ editor.basePath = "../../" ' Set global configuration (will be used by all instances of CKEditor). editor.config("width") = 600 ' Change default textarea attributes set textareaAttributes = CreateObject("Scripting.Dictionary") textareaAttributes.Add "rows", 10 textareaAttributes.Add "cols", 80 Set editor.textareaAttributes = textareaAttributes ' The initial value to be displayed in the editor. initialValue = "

This is some sample text. You are using CKEditor.

" ' Create first instance. code = editor.editor("editor1", initialValue) response.write code %>


<% ' Configuration that will be used only by the second editor. editor.instanceConfig("toolbar") = Array( _ Array( "Source", "-", "Bold", "Italic", "Underline", "Strike" ), _ Array( "Image", "Link", "Unlink", "Anchor" ) _ ) editor.instanceConfig("skin") = "v2" ' Create second instance. response.write editor.editor("editor2", initialValue) %>