Hello guys!
I am working on this function. It creates a vbulletin text editor:
PHP Code:
function makeform() {
global $setting, $show, $messagearea, $forumpath, $vbulletin;
require_once($forumpath . '/includes/functions_editor.php');
construct_edit_toolbar('' /* content */, 0 /* html */, 'external_editor', 1 /*smileys*/,1 /*parse smileys*/, 0 /*can attach*/, '' /*editor type*/);
$page = '';
$page .= '<form method="post" action="">';
$page .= $messagearea;
$page .= '<input type="submit" value="Send" />';
$page .= '</form>';
return $page;
}
echo makeform();
And I have this plugin:
PHP Code:
// hook is 'editor_toolbar_switch
if($forumid == 'external_editor') {
$show['img_bbcode'] = true;
$can_toolbar = true;
}
So the form works now. And I can post vbcodes and all when using the standard editor. But when switching to wysiwyg, it won't return what's written in the textarea.
When typing in some text, making it bold or whatever, pressing submit, the return will be empty. But ONLY in wysiwyg. What can be causing this?