Welcome to Our Community

Registration on our forums are now open for some days! Feel free to sign up today.

[Template/Code Modification] Unmaintained disable text colour-formatting in editor 1.1.2

remove chromes pasting of colours into the tinymce editor

  1. XenForo Rocks
    Compatible XF Versions:
    • 1.0
    • 1.1
    • 1.2
    xf 1.0 - 1.1.2

    due to chrome pasting issues (pasting colour-formatted text), and the fact that i have both a light and dark style available, text colour formatting is problematic. as a result i have elected to completely disable all colour functionality from tinyMCE.
    • pasted colour-formatting will be stripped when posted
    • colour-format button will not be visible
    • manually entered [color] tags will silently fail
    • code colour-formatting is unaffected (syntax highlighting)
    • the effect is not retroactive
    unfortunately this requires several code modifications to the php files. i have made the necessary edits and included them in the attached zip.
    to install, unzip and upload.
    to revert, upload the original files from your xenforo install zip.

    files affected:
    /library/XenForo/Html/Renderer/BbCode.php
    /library/XenForo/BbCode/Formatter/Base.php
    /js/tinymce/themes/xenforo/editor_template.js
  • About Us

    Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.
  • Like us on Facebook

  • Buy us a beer!

    The management works very hard to make sure the community is running the best software, best designs, and all the other bells and whistles. Care to buy us a beer? We'd really appreciate it!

    Donate to us!