Here is the changes to add 'Select All' to this mod (thanks to
BCP Hung for his select all mod which I used for this) and also fixed the edit issue so that you can edit the code without everything parsing with no problems (thanks to wedframe in the previous post)
Insert javascript code into headinclude template
AdminCP -> Styles & Templates -> Style Manager -> Edit Templates -> headinclude
Copy and paste following js code to bottom of headinclude template :
Code:
<script type="text/javascript">
function selectAll(a)
{
var e = a.parentNode.parentNode.getElementsByTagName('code')[0];
if (window.getSelection)
{
var s = window.getSelection();
if (s.setBaseAndExtent)
{
s.setBaseAndExtent(e, 0, e, e.innerText.length - 1);
}
else
{
var r = document.createRange();
r.selectNodeContents(e);
s.removeAllRanges();
s.addRange(r);
}
}
else if (document.getSelection)
{
var s = document.getSelection();
var r = document.createRange();
r.selectNodeContents(e);
s.removeAllRanges();
s.addRange(r);
}
else if (document.selection)
{
var r = document.body.createTextRange();
r.moveToElementText(e);
r.select();
}
}
</script>
then import and overwrite the new xml - enjoy
Tested on vb 4.2.3
Here's info to add the custom bbcode buttons to Quick Reply and Quick Edit
https://vborg.vbsupport.ru/showpost....4&postcount=15