Resource icon

Unmaintained disable text colour-formatting in editor 1.1.2

No permission to download
Compatible XF 1.x versions
  1. 1.0
  2. 1.1
  3. 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
Author
dieketzer
Downloads
41
Views
1,256
First release
Last update

Ratings

4.00 star(s) 2 ratings

Latest reviews

Thank you, i am using this on my forum
Nice mod but needs more info on what parts are changed/removed, trying to find what's been edited but finding it hard.
dieketzer
dieketzer
thats why it was released as pre-edited php files. it was too hard to list all the edits made over multiple files.
Back
Top Bottom