Simply choose the option 'generate WYSIWYG editor for
memo fields' when you generate your asp files, then choose
which fields you would like to have the editor for.
After you have generated then browse to your edit and add
screens and the WYSIWYG editor will be available to use
- simple!
Tips for using the editor - upload the images you may want
to use in your articles first into the image
library - they will then be available in the insert_image
feature on the editor.
Hold the SHIFT key when hitting RETURN/ENTER down for a
single carriage return
Use the <> function to display the html that the editor
is generating - you can then edit the html yourself if you
should so wish.
Technical Details
The WYSIWYG editor requires internet explorer 5.5 or above
to work.
You can download the latest version of internet explorer
from
http://www.microsoft.com/ie
The insert image code relies on having the actual domain
of your site ( e.g http://www.mysite.com ) within one of
the functions - when your code is generated then the default
domain is 'localhost'.
After testing locally you may upload to your site - there
are 2 lines of code that you need to change when you change
your domain in order for the insert image function to work.
Open the file insert_image.asp in your asp editor or a text
editor - if you have line numbers available to you then
it is lines 342 and 343 that we will be changing. These
are towards the bottom of the page and will look somethinglike
this
inpImgURL.value = "http://localhost/mySite/admin"
+ sURL;
txtFileName.value = "http://localhost/mySite/admin"
+ sURL;
Now lets say you are uploading to your site www.mySite.com
You will need to change the 2 lines to ...
inpImgURL.value = "http://www.mySite.com/admin"
+ sURL;
txtFileName.value = "http://www.mySite.com/admin"
+ sURL;
Or if you were uploading to a subfolder of mySite.com then
inpImgURL.value = "http://www.mySite.com/subfolder/admin"
+ sURL;
txtFileName.value = "http://www.mySite.com/subfolder/admin"
+ sURL;
Thats it ! - save the file insert_image.asp
If you have written articles locally and then upload them
- then, after changing the above lines you will need to
reupdate your images - you can do this by deleting the image
then using the insert image again - or editing the html
using the <> html editor function within the editor.