wpsharks / s2member

s2Member® Framework (membership management for WordPress®).
64 stars 36 forks source link

Feature Request: Rich Text Field (TinyMCE) for Custom Registration/Profile Fields #518

Open raamdev opened 9 years ago

raamdev commented 9 years ago

The Registration/Profile Fields (s2Member → General Options → Registration/Profile Fields & Options) currently supports Textarea fields, but not Rich Text Fields (where the text box would include a HTML WYSIWYG editor, such as TinyMCE).

WordPress is bundled with TinyMCE, so it should be possible to use this: http://codex.wordpress.org/TinyMCE

kokogit commented 9 years ago

This will be a very much needed requirement. It's got my vote 100%

jaswrks commented 9 years ago

I'm curious to know what sort of sanitation that you each have in mind when it comes to a user being able to submit HTML. Are we talking the basics only (e.g., a, strong, em) or what options for this seem desirable?

raamdev commented 9 years ago

I think basic HTML is a good start (e.g., a, img, strong, b em, i, ul, ol, li). If there was some way for site owners to allow only certain attributes (via a filter), that would be great too.

jaswrks commented 9 years ago

Referencing: http://codex.wordpress.org/Function_Reference/wp_kses