Okay, I integrated the following into my template:
// we split the wiki output when page is in edit mode
ob_start();
tpl_content();
$wiki_output = ob_get_contents();
ob_clean();
if (($ACT == 'edit') || ($ACT == 'preview')) {
$pattern = '/\<br\sid\=\"scroll\_\_here\"\s\/\>/';
$split = preg_split($pattern, $wiki_output);
$edit_area = $split[0];
$wiki_area = $split[1];
} else {
$wiki_area = $wiki_output;
}
Now I have two variables with the content.
$edit_area
is mostly empty and its div-id is not shown.
That seems to work.
Greetings.