Enable text editor on custom data box?

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.

Comments

  • 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.)
  • acrylian Administrator, Developer
    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.
Sign In or Register to comment.