Im having better luck so far just by making a function and calling it. I put this in backend/bbcode.php at the top
function sceditor() {
?>
<textarea id='example' style='height:300px;width:80%;' name='body' rows='13'></textarea>
<link rel="stylesheet" href="sceditor/minified/themes/default.min.css" id="theme-style" />
<script src="sceditor/minified/sceditor.min.js"></script>
<script src="sceditor/minified/icons/monocons.js"></script>
<script src="sceditor/minified/formats/bbcode.js"></script>
<script>
// Replace the textarea #example with SCEditor
var textarea = document.getElementById('example');
sceditor.create(textarea, {
format: 'bbcode',
style: 'minified/themes/content/default.min.css',
startInSourceMode: true,
toolbar: 'bold,italic,underline,strike,left,center,right,font,size,color,cut,copy,paste,code,quote,image,link,emoticon,youtube,source',
emoticonsRoot: "<?php echo $site_config['SITEURL'] ?>/sceditor/",
emoticonsCompat: true
});
</script>
<?php
}
then just calling the function rather than editing the headers. I dunno, im still fiddling, just a thought that seems to be a bit simpler I couldnt make it work using the header edits, not sure what was going wrong and I couldnt tell, so I piled all the code into the function to execute all of it so then I knew it was launching