jQuery.fn.evolutionUserFileTextBox
This plugin converts a text input field accepting a URL into a user file browser with a preview and buttons to select or remove the selected file.
Usage
Initialize the plugin
$('SELECTOR').evolutionUserFileTextBox(options)
Options
removeText
: The text to show on the remove button. This is automatically defaulted by Evolution.selectText
: The text to show on the select button. This is automatically defaulted by Evolution.noFileText
: The text to show when no file is selected. This is automatically defaulted by Evolution.cssClass
: The CSS class of the <div> tag wrapping the selection area. This is automatically defaulted by Evolution.previewCssClass
: The CSS Class of the <div> tag wrapping the preview area. This is automatically defaulted by Evolution.initialPreviewHtml
: The HTML to show in the preview area when loaded. This should be set to the appropriate output from the $core_media extension within scripted widgets.