To configure CKEditor & TinyMCE Quick Image Uploader use these keys in config.js
file (for CKEditor) or in initialization script (for TinyMCE).
jsplus_image_uploader_url
: URLDefault value: auto detection
Set this URL to specify location of images uploader manually. This option affects to all JS+ uploader add-ons.
jsplus_image_template
: HTMLDefault value:
<img src="{IMAGE}" />
HTML template used for image insertion.
{IMAGE}
snippet will be substituted to full URL of image, {FILENAME}
- to file name of the image (without path).You can combine any HTML tags to insert images formatted automatically.
Note: always use only one root element in the template. When you need more then one root elements, just make them second level and wrap with
<div>
for example.jsplus_image_default_img_resize
: BooleanDefault value:
true
Available values:
true
, false
Turns on or off feature to resize images doing upload.
jsplus_image_default_img_resize_width
: IntegerDefault value:
800
The width for uploaded images. If image has another width it will use this value as constraint.
0
means keeping original width.If
jsplus_image_img_resize_show
parameter is true
user can change this value from the web.jsplus_image_default_img_resize_height
: IntegerDefault value:
600
The height for uploaded images. If image has another height it will use this value as constraint.
0
means keeping original height.If
jsplus_image_img_resize_show
parameter is true
user can change this value from the web.jsplus_image_default_img_resize_enlarge
: BooleanDefault value:
false
Available values:
true
, false
If the resolution of uploading image is lower then width and height constraints, it will be enlarged if this parameter is set to
true
.jsplus_image_img_resize_show
: BooleanDefault value:
false
Available values:
true
, false
Show or hide panel with image resize options. This parameter does not affect for will be image actually resized or not. It only lets or not user to change size from the web.
jsplus_image_allowed_ext
: StringDefault value:
'jpg,jpeg,gif,png,bmp,tif,tiff'
Available values: The list of file extensions, comma separated
This list of extensions will be used in the file choose dialog opened on "Add files" click. Some of browsers/operation systems can ignore this parameter.
Use
'*'
value for allowing any file types.For security reasons this value must be configured on server side too. So do not forget to configure file types in
jsplus_uploader/config.php
(for PHP) or in IIS server config (for .NET).