- Uyumlu XF 2 Sürümleri
- 2.2.X
- 2.0.X
- 2.1.X
2- After installation (you see after clicking the mouse on the code, it is fully selected)
3- Explanation of installation
1- From Control Panel >> Appearance >> Search Templates and search for bb_code_tag_code
2- Replace the entire code with the attached file
4- If you want to manually modify the original template, do the following
1- Open the bb_code_tag_code template and search for the following
- find below
<code>{$content}</code>
Replace it with this
<code onclick="getData(this)">{$content}</code>
2- Add the following code at the end of the template
<script>
function getData(element)
{
if (document.body.createTextRange) {
var range = document.body.createTextRange();
range.moveToElementText(element);
range.select();
} else if (window.getSelection) {
var selection = window.getSelection();
var range = document.createRange();
range.selectNodeContents(element);
selection.removeAllRanges();
selection.addRange(range);
}
}
thank you