Slion
Active member
The whole thing is working quite fine now. But there are still some rough edges:
- Copy/Paste in wysiwyg will loose headers formatting. I'm assuming this would require further Redactor customisation. Are there standard ways to customise Redactor for XenForo?
- I got in page #links working somehow but the code would be so much simpler if there were no <base> or a reliable way to find the document name that's currently being served, including for inline saves. In my case I believe I could simplify the code if I could get rid of the base, since my base is the domain root that should not break anything else.
HTML:
<base href="https://xenforo.com/community/" />
<script>
var _b = document.getElementsByTagName('base')[0], _bH = "https://xenforo.com/community/";
if (_b && _b.href != _bH) _b.href = _bH;
</script>