diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-06-29 16:35:18 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-06-29 16:35:18 +0200 |
commit | 3cc1afa1c2f30bfebb30146795e50172947b4b5f (patch) | |
tree | 077d3ec048b393472f41917448b4a14b977b3e58 /program/steps/settings/edit_identity.inc | |
parent | c3bb0d32a52687865f78816d4a88292d72803e73 (diff) |
Support images in HTML signatures (#1488676)
This enables image button and file browser in html editor for signatures
Diffstat (limited to 'program/steps/settings/edit_identity.inc')
-rw-r--r-- | program/steps/settings/edit_identity.inc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/program/steps/settings/edit_identity.inc b/program/steps/settings/edit_identity.inc index 20f822027..34fe9798f 100644 --- a/program/steps/settings/edit_identity.inc +++ b/program/steps/settings/edit_identity.inc @@ -176,5 +176,15 @@ function rcube_identity_form($attrib) $out .= $form_end; + // add image upload form + $max_filesize = $RCMAIL->upload_init($RCMAIL->config->get('identity_image_size', 64) * 1024); + $upload_form_id = 'identityImageUpload'; + + $out .= '<form id="' . $upload_form_id . '" style="display: none">' + . html::div('hint', $RCMAIL->gettext(array('name' => 'maxuploadsize', 'vars' => array('size' => $max_filesize)))) + . '</form>'; + + $RCMAIL->output->add_gui_object('uploadform', $upload_form_id); + return $out; } |