XF 2.0 Rich text editor option

Liam W

in memoriam 1998-2020
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?

Liam
 
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.
 
Back
Top Bottom