I have built a solution to make it possible for the
FCKeditor enduser to say if a form element is required
or not. It uses the identfier "_obligatorisch" at the end of
the form element name for those elements to be
checked.
Because I do not use FCKeditor in full page mode I
insert the necessary JavaScript into the output page
dynamically. It is attached to this document and must
be insert like this between <head> and </head>:
<script language="JavaScript"
src="/chkmyform.js"></script>
In fact I did change the FCK source insignificant to be
compatible to future versions. I had to adapt
fck_form.htm, so that the inserted form looks like this:
<form action="sendmail.asp" method="post"
onsubmit="return formchecker(this);">.
Before it looked like this:
<form action="sendmail.asp" method="post">
I am German, so the comments inside chkmyform.js
are German. The attached document is written in (bad)
English, so everyone should be possible to use this
script.
I use this script dynamically with my CMS: www.das-
ist.it
Enjoy!
This script extends FCKeditor with required form elements.