Heh, sorry, woman... Anyways, I got all that and it's not making a difference, text editor buttons dont work... the error pops up on the console in Chrome too... This is all my code related to this...
Code:
if ($perms['comment'])
{
require_once(DIR . '/includes/functions_editor.php');
$editorid = construct_edit_toolbar('',0,'nonforum',1,1,0,'qr_small');
}
Code:
$templater->register('editorid', $editorid);
$templater->register('messagearea', $messagearea);
Code:
<vb:if condition="$perms['comment']">
<script type="text/javascript" src="clientscript/vbulletin-editor.js?v={vb:raw vboptions.simpleversion}"></script>
<link rel="stylesheet" type="text/css" href="{vb:var vbcsspath}editor.css" />
<link rel="stylesheet" type="text/css" href="{vb:var vbcsspath}bbcode.css" />
<form action="media.php" name="vbform" method="post" onsubmit="return vB_Editor['{vb:raw editorid}'].prepare_submit(this.inputname.value, {vb:raw vboptions.postminchars})">
<div name="commentform" id="commentform">
<div class="mediarow floatcontainer" style="padding: 10px;">
{vb:raw messagearea}
</div>
</div>
<div style="padding-right: 30px; text-align: right;">
<input type="submit" class="button" name="commentsubmit" id="commentsubmit" value="Submit Comment" />
</div>
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="do" value="comment" />
<input type="hidden" name="mid" value="{vb:var media.mediaID}" />
</form>
</vb:if>
Everything works fine if I switch to the FE, instead of the QR... but I don't want to use the FE in this specific spot.