2012-02-17, 07:56 PM
Hi,
I want to modfiy the editor of MyBB, but I can't seem to find the source of this:
If I remove the $codebuttons variable from the newreply template then those variables go away, so I took a look at the codebuttons template:
I figured the source may be this $bind variable, so I looked it up in the functions.php file, but again I am stuck here as well. It's also not the editor.js file.
So can anyone please tell me where the hell the div above comes from?
Thanks.
I want to modfiy the editor of MyBB, but I can't seem to find the source of this:
<div style="position: relative; width: 528px; height: 387px;" class="messageEditor">
If I remove the $codebuttons variable from the newreply template then those variables go away, so I took a look at the codebuttons template:
<script type="text/javascript" src="jscripts/editor.js?ver=1600"></script>
<script type="text/javascript">
<!--
{$editor_language}
var clickableEditor = new messageEditor("{$bind}", {lang: editor_language, rtl: {$lang->settings['rtl']}, theme: "{$theme['editortheme']}"});
if(clickableEditor)
{
clickableEditor.bindSmilieInserter("clickable_smilies");
}
// -->
</script>
I figured the source may be this $bind variable, so I looked it up in the functions.php file, but again I am stuck here as well. It's also not the editor.js file.
So can anyone please tell me where the hell the div above comes from?
Thanks.