1.- PHP File
Code:
$show['wysiwyg'] = ($vbulletin->options['allow_bbcode'] ? is_wysiwyg_compatible() : 0);
$istyles_js = construct_editor_styles_js();
$show['qr_require_click'] = 0;
$editorid = construct_edit_toolbar($ad["description"], 0, '', 1, 1, false, 'fe');
$messagearea = "
<script type=\"text/javascript\">
<!--
var require_click = false;
var threaded_mode = 1;
var is_last_page = false;
// -->
</script>
$messagearea
";
Replace $ad["description"] with your own field
Template:
If you want to use Quick Reply editor instead the full editor then use 'qr' instead of 'fe' at:
Code:
$editorid = construct_edit_toolbar($ad["description"], 0, '', 1, 1, false, 'fe');
--------------- Added [DATE]1488284668[/DATE] at [TIME]1488284668[/TIME] ---------------
I think that I was out of topic before

.... Thought that you want to add vb Editor to textarea.
Code:
require_once(DIR . '/includes/class_bbcode.php');
$any_variable_name = convert_wysiwyg_html_to_bbcode($vbulletin->GPC['your_field_name']);