By Paul
This code should allow WYSIWYG editing of a custom field 'fcktest':
<IF {THISMEMBERPOSTEDITOR} is WYSIWYG>
<?php
include("fckeditor/fckeditor.php") ;
$oFCKeditor = new FCKeditor('fcktest') ;
$oFCKeditor->ToolbarSet = 'Basic'; // uncomment to use basic tools
$oFCKeditor->Create() ;
?>
<textarea id="fcktest_wysiwyg_hidden" rows="5" cols="45"
style="display:none;">{IMAGEFCKTEST}</textarea>
<script type="text/javascript">
if (typeof(FCKeditor_OnComplete) == 'undefined'){
function FCKeditor_OnComplete( editorInstance ){
if
(document.getElementById(editorInstance.Name+'_wysiwyg_hidden') != null){
editorInstance.SetHTML(document.getElementById(editorInstance.Name+'_wysiwyg
_hidden').value);
}
}
}
</script>
<ELSE>
<textarea name="fcktest" rows="5" cols="45">{IMAGEFCKTEST}</textarea>
</IF>
<?php
include("fckeditor/fckeditor.php") ;
$oFCKeditor = new FCKeditor('fcktest') ;
$oFCKeditor->ToolbarSet = 'Basic'; // uncomment to use basic tools
$oFCKeditor->Create() ;
?>
<textarea id="fcktest_wysiwyg_hidden" rows="5" cols="45"
style="display:none;">{IMAGEFCKTEST}</textarea>
<script type="text/javascript">
if (typeof(FCKeditor_OnComplete) == 'undefined'){
function FCKeditor_OnComplete( editorInstance ){
if
(document.getElementById(editorInstance.Name+'_wysiwyg_hidden') != null){
editorInstance.SetHTML(document.getElementById(editorInstance.Name+'_wysiwyg
_hidden').value);
}
}
}
</script>
<ELSE>
<textarea name="fcktest" rows="5" cols="45">{IMAGEFCKTEST}</textarea>
</IF>

Print
Rate
E-Mail