Hi, new to the board today and new to dokuwiki this week... I've been trying to integrate wikiwyg, and think I need some new functionality in dokuwiki - this is not a feature request though, I'm adding it myself, just wanted an opinion. I've put a new section in actions.php, as I want a new parameter export_preview_xhtmlbody to return whatever wikitext is passed in, rendered as html, so that wikiwyg can make awysiwig version of it. I can't figure out how to turn on 'notoc' so that the table of contents is not passed back. Anyone know if this is possible? At the moment I bodged it like this:
if ( $act == 'export_preview_xhtmlbody' ){
// print p_wiki_xhtml( $ID, $REV, false );
global $TEXT;
// $info['notoc'] = true;
// $info['toc'] = false;
// print( 'info is <pre>' . print_r( $info, TRUE ) . '</pre>' );
$TEXT = $TEXT . '~~NOTOC~~';
$content = p_render( 'xhtml', p_get_instructions( $TEXT ), $info );
// Can't stop toc being inserted...
print $content;
exit;
}
is it right that $info is beiing overwritten once it's passed into p_render? Is there a better way to do what I'm trying to do?
I saw
the tips page, but it doesn't seem very active, it's not clear if anyone ever got this working or not. If anyone did, please get in touch! wysiwyg editing of tables would encourage my users into the wiki...