$qa_content=qa_content_prepare();
$editorname=isset($in['editor']) ? $in['editor'] : qa_opt('editor_for_qs');
$editor=qa_load_editor(@$in['content'], @$in['format'], $editorname);
$field=qa_editor_load_field($editor, $qa_content, @$in['content'], @$in['format'], 'content', 12, false);
$field['label']=qa_lang_html('question/q_content_label');
$field['error']=qa_html(@$errors['content']);
$custom=qa_opt('show_custom_ask') ? trim(qa_opt('custom_ask')) : '';
$qa_content['form']=array(
'tags' => 'name="ask" method="post" action="'.qa_self_html().'"',
'style' => 'tall',
'fields' => array(
'custom' => array(
'type' => 'custom',
'note' => $custom,
),
'similar' => array(
'type' => 'custom',
'html' => '<span id="similar"></span>',
),
'content' => $field,
),
'buttons' => array(
'ask' => array(
'tags' => 'onclick="qa_show_waiting_after(this, false); '.
(method_exists($editor, 'update_script') ? $editor->update_script('content') : '').'"',
'label' => qa_lang_html('question/ask_button'),
),
),
'hidden' => array(
'editor' => qa_html($editorname),
'code' => qa_get_form_security_code('ask'),
'doask' => '1',
),
);
return $qa_content;
But it won't display the editor right - the stylesheets or scripts are apparently not loaded...