Finally I've figured it out :) I know, it is a littlebit to late, as in 1.3 there is Wysiwyg Editor implemented, but for those of you, that would like to use for example NicEdit, here's how to do it:
1. Open qa_page.php and change:
if (!empty($qa_content['keywords']))
$themeclass->output('<META NAME="keywords" CONTENT="'.$qa_content['keywords'].'"/>');
// as far as I know, META keywords have zero effect on search rankings or listings
$themeclass->output('<SCRIPT TYPE="text/javascript"><!--');
to
if (!empty($qa_content['keywords']))
$themeclass->output('<META NAME="keywords" CONTENT="'.$qa_content['keywords'].'"/>');
// as far as I know, META keywords have zero effect on search rankings or listings
$nicEdithtml = "";
$nicEdithtml .= ("\n<script type=\"text/javascript\" src=\"http://js.nicedit.com/nicEdit-latest.js\"></script>\n");
$nicEdithtml .= ("<script type=\"text/javascript\">");
$nicEdithtml .= ("/*<![CDATA[*/");
$nicEdithtml .= ("bkLib.onDomLoaded(function() { ");
$nicEdithtml .= ("nicEditors.allTextAreas({fullPanel : true});");
$nicEdithtml .= ("});");
$nicEdithtml .= ("/*]]>*/");
$nicEdithtml .= ("</script>");
$themeclass->output($nicEdithtml);
$themeclass->output('<SCRIPT TYPE="text/javascript"><!--');
2. Open qa-app-format.php and change:
// Post content
if (!empty($post['content'])) {
if (isset($blockwordspreg))
$post['content']=qa_block_words_replace($post['content'], $blockwordspreg);
$fields['content']=qa_html($post['content'], true); // also used for rendering content when asking follow-on q
if ($showurllinks)
$fields['content']=qa_html_convert_urls($fields['content']);
if ($microformats)
$fields['content']='<SPAN CLASS="entry-content">'.$fields['content'].'</SPAN>';
$fields['content']='<A NAME="'.qa_html($postid).'"></A>'.$fields['content'];
// this is for backwards compatibility with any existing links using the old style of anchor
// that contained the post id only (changed to be valid under W3C specifications)
}
to
// Post content
if (!empty($post['content'])) {
if (isset($blockwordspreg))
$post['content']=qa_block_words_replace($post['content'], $blockwordspreg);
$fields['content']=$post['content'];
$fields['content']='<A NAME="'.qa_html($postid).'"></A>'.$fields['content'];
// this is for backwards compatibility with any existing links using the old style of anchor
// that contained the post id only (changed to be valid under W3C specifications)
}
Please let me know if it works in your sites :)
Here's mine: http://quanda.pl
Thanks
PS. I've just added tables functionality and integrated lightbox script thanks to http://scottjarvis.com as well as SyntaxHighlighting