Before using the KTML control on any of the pages, you must define some global settings for the Website. These settings define the image editing library to use, XHTML compliance libraries and spellchecking support. To define these libraries you must modify the Web.config file in the site root and add some new keys. You will have to add these keys inside a new <appsettings> section. Create this now.
The first key to add defines the preferred image
library to use. KTML can use two libraries: the internal .Net image processing
library (which is the default) and ImageMagick.
If you want to use ImageMagick as image processing
library, you have to add this key.
<add key="KT_prefered_image_lib" value="imagemagick"/>
If you have defined a preferred image gallery,
you must also set the path to the executable file:
<add key="KT_prefered_imagemagick_path" value="C:\Program
Files\ImageMagick"/>
Next add a key defining the path to the HTML Tidy
executable file. If it is not specified, XHTML and code cleaning features
will not be available:
<add key="KT_prefered_tidy_path" value="c:\windows"/>
Note: replace c:\windows with the
actual path on your server where HTML Tidy
is installed. If you do not have HTML
Tidy installed, you will not be able to use some of the features.
To learn more about the XHTML
supported set of tags check out the reference manual.
The last key to add defines the path to the aspell
executable. Aspell is used to provide spellchecking
features to the editor. If you do not set this path, spellchecking will
not be available:
<add key="KT_prefered_aspell_path" value="c:\Program
Files\Aspell\bin"/>
Note: Replace all of the above paths with the actual ones on the server where the application
will reside.
Some KTML operations depend on having a session variable available to store the object ID. If using the IntProc method of storing session variables, upon performing any file operations you will get the error that the Module Security failed. To avid this, in the web.config file set the sessionstate mode to StateServer.
Save the file to apply the changes and close it.
You can now continue and apply the KTML control on your pages. The settings in this file are taken into account by each control on the website.