Member
Member
amucklow   2011-01-11, 18:09
#1

Hi - just wondering if anybody's ever tried enabling a text editor on a custom data field in the admin. It would be quite useful, since the custom data field removes line breaks.

Thanks.

Member
Member
sbillard   2011-01-11, 18:22
#2

It would not be a good idea in general to do so, as the custom field can have many different uses. However, there is no reason not to make a custom field processing filter for the specific case you are concerned with.

For instance, the comment form plugin does this for comment custom data and inserts an array of address information into that record field. Similarly, the user-groups plugin does this for the admin custom data.

You would have to properly class the input data text area so that TinyMCE would act upon it, but that should not be all that hard. (I don't have the details at hand, you would have to reasearch it.)

Administrator
Administrator
acrylian   2011-01-11, 18:26
#3

It is no problem to enable the editor on the custom data field or even the codeblocks. For enabling it for the custom data field on gallery items there is even a config file already included. View the tinymce plugin options and choose zenphoto-default-with-customdatafield.js.php for the Zenphoto items.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.