XF 2.0 Rich text editor option

Liam W

Well-known member
Is there an easy way to show a rich text editor for an option?

Getting it to show is easy (just use a template), but getting it to save is tricky, as we don't have access to the controller in the option vefification method, and obviously the option controller doesn't do any logic to work with rich editors.

I'm probably going to have to either hack around the options controller, or not use a rich text editor, but before that I just wanted to make sure that I haven't missed anything?


Chris D

XenForo developer
Staff member
Using the controller plugin or hacking the controller isn't necessary, though it likely would need a bit of code duplication.

You just need the request object (\XF::request()) for filtering and then conversion from HTML to BB code if needed.