Images"

This website contains links to software which is either no longer maintained or will be supported only until the end of 2019 (CKFinder 2). For the latest documentation about current CKSource projects, including software like CKEditor 4/CKEditor 5, CKFinder 3, Cloud Services, Letters, Accessibility Checker, please visit the new documentation website.

If you look for an information about very old versions of CKEditor, FCKeditor and CKFinder check also the CKEditor forum, which was closed in 2015. If not, please head to StackOverflow for support.

(Minor rewording)
(Image Info section rewritten. Image manipulation section added.)
Line 2: Line 2:
 
CKEditor allows you to add images to your documents in an easy and intuitive way.
 
CKEditor allows you to add images to your documents in an easy and intuitive way.
  
To insert an image simply press the [[Image:CKEditor_image.png‎|Image]] button on the toolbar. The '''Image Properties''' dialog window that will open lets you set various configuration options that define image source, its size, display properties, or other advanced properties.
+
To insert an image simply press the [[Image:CKEditor_image.png‎|Image]] button on the toolbar. The '''Image Properties''' dialog window that will open lets you set configuration options that define image source, its size, display properties, or other advanced properties.
  
The '''Image Properties''' dialog window include four tabs that group numerous image options:
+
The '''Image Properties''' dialog window includes four tabs that group image options:
 
* [[CKEditor_3.x/Users_Guide/Common_Tasks/Inserting_Images#Image_Info|Image Info]]
 
* [[CKEditor_3.x/Users_Guide/Common_Tasks/Inserting_Images#Image_Info|Image Info]]
 
* [[CKEditor_3.x/Users_Guide/Common_Tasks/Inserting_Images#Link|Link]]
 
* [[CKEditor_3.x/Users_Guide/Common_Tasks/Inserting_Images#Link|Link]]
Line 10: Line 10:
 
* [[CKEditor_3.x/Users_Guide/Common_Tasks/Inserting_Images#Advanced|Advanced]]
 
* [[CKEditor_3.x/Users_Guide/Common_Tasks/Inserting_Images#Advanced|Advanced]]
  
All tabs contain the [[Image:CKEditor_ok_button.png‎|OK]] and [[Image:CKEditor_cancel_button.png‎|Cancel]] buttons that let you accept the changes or close the dialog window without any changes, respectively.
+
All tabs contain the [[Image:CKEditor_ok_button.png‎|OK]] and [[Image:CKEditor_cancel_button.png‎|Cancel]] buttons that let you accept the changes or close the dialog window without performing any changes, respectively.
  
Once inserted into the document, the image can be edited at any time by double-clicking it. The '''Image Properties''' dialog window will open again and let you introduce any changes to the image configuration options.
+
Once inserted into the document, the image can be edited at any time by double-clicking it. The '''Image Properties''' dialog window will open again and you will be able to introduce changes to the image configuration options.
  
 
If you attempt to close the '''Image Properties''' dialog window without saving the changes, you will be prompted to do so:
 
If you attempt to close the '''Image Properties''' dialog window without saving the changes, you will be prompted to do so:
  
[[Image:CKEditor_image_changed.png|frame|center|alt=An alert window prompting to save the changes to the image|An alert window prompting to save the changes to the image]]
+
[[Image:CKEditor_image_changed.png|frame|center|alt=An alert window prompting to save the changes made to the image|An alert window prompting to save the changes made to the image]]
  
  
You can either proceed withou saving your changes by choosing '''OK''' or close the alert window with a '''Cancel''' command and save the changes.
+
You can either proceed without saving your changes by choosing '''OK''' or close the alert window with the '''Cancel''' command and save the changes.
  
  
=== Image Info ===
+
== Image Info ==
[[Image:CKEditor_insert_images.png]]
 
  
The first bookmark refers to the "Image Info"<br>
+
The '''Image Info''' tab is the default tab to open after you press the [[Image:CKEditor_image.png‎|Image]] button on the toolbar. It allows you to set the image URL and configure the way it will appear in the document.
  
* '''URL''': defines the URL address of the image. User may also use the "Browse Sever" in order to browse the files.
+
[[Image:CKEditor_insert_images.png|frame|center|alt=Image Info tab of the Image Properties window|Image Info tab of the Image Properties window]]
* '''Alternative Text''': gives the description of the image if user prefers it to be different from the image name.
 
* '''Width''': specifies image’s width.<br>
 
* '''Height''': specifies image’s height.
 
  
User may lock the image proportions by pressing [[Image:CKEditor_lock.png]] or may return to the original image size by pressing [[Image:CKEditor_return.png]].
 
  
* '''Border''' &ndash; specifies the size of the border you want to place around the image.
+
Here is an overview of all '''Image Info''' tab elements:
* '''HSpace''': defines the size of the&nbsp; horizontal gap.
+
* '''URL''' &mdash; the web address of the image. The image may be located on the same server as the web site you are now in or on the external server.
* '''VSpace''': defines the size of the vertical gap.
+
** External server: If you want to use an external address, use the full absolute path.
* '''Align''': specifies the alignment of the image. User may choose between Left or Right.
+
**: Example:
 +
**: http://example.com/image1.jpg
 +
** Local server: If the image is located on the same server, you can use an absolute path that skips the domain name and starts with a slash.
 +
**: Example:
 +
**: [[/images/image2.jpg]]
 +
**: If CKEditor is integrated with a file browser (like [http://ckfinder.com/ CKFinder]), you can also use the '''Browse Server''' button to select an image from the ones that are available on the server.
  
In a "Preview" window user may view how the window looks with the added image.  
+
* '''Alternative Text''' &mdash; the short textual description of the image that tells users with assistive devices (like screen readers) what the image is about. You should always provide your images with meaningful alternative text in order to make it [[CKEditor_3.x/Users_Guide/Accessibility|accessible]] to users with disabilities.
  
Pressing "'''OK'''" inserts the image with the specified properties.
+
* '''Width''' &mdash;  the width of the image in pixels. By default this is the size of the original image.
 +
* '''Height''' &mdash; the height of the image in pixels. By default this is the size of the original image.
  
=== Link ===
+
* '''Border''' &mdash; the size of the solid border around the image in pixels.
 +
* '''HSpace''' &mdash; the horizontal spacing (or margin) between the image border (if present) or the image itself and other document elements that surround the image, in pixels.
 +
* '''VSpace''' &mdash; the vertical spacing (or margin) between the image border (if present) or the image itself and other document elements that surround the image, in pixels.
 +
* '''Align''' &mdash; the alignment of the image in the document. Available options are '''Right''' and '''Left'''.
 +
* '''Preview''' &mdash; a display of the selected image formatted according to the options chosen on the left.
 +
 
 +
=== Image manipulation ===
 +
 
 +
With CKEditor you do not have to worry about resizing your image.
 +
 
 +
If the image is too big, you can alter its dimensions by entering new values into the '''Width''' and '''Height''' fields. By default the image ratio is locked, which you can see thanks to a [[Image:CKEditor_lock.png|alt=Lock]] icon. This means that when you change one of the size values (width or height), the other one will be adjusted automatically.
 +
 
 +
If you want to freely modify both dimensions, click the [[Image:CKEditor_lock.png|alt=Lock]] button in order to unlock the ratio. The button will now change to [[Image:CKEditor_unlock.png|alt=Unlock]] and a modification of one dimension will not automatically adjust the other one. To lock the image ratio again, click the [[Image:CKEditor_unlock.png|alt=Unlock]] button once more.
 +
 
 +
You can easily return to original image size by pressing the [[Image:CKEditor_reset_size.png|alt=Resize]] button. This will reset the image size; the original width and height will now appear in appropriate text boxes.
 +
 
 +
 
 +
== Link ==
  
 
The second bookmark relates to "Link":<br>
 
The second bookmark relates to "Link":<br>
Line 52: Line 70:
 
* '''Target''': defines the target of the image (for advanced users). User may choose from New Window ( _blank ), Topmost Window ( _top ), Same Window ( _self ) or Parent Window ( _parent ).
 
* '''Target''': defines the target of the image (for advanced users). User may choose from New Window ( _blank ), Topmost Window ( _top ), Same Window ( _self ) or Parent Window ( _parent ).
  
=== Upload ===
+
== Upload ==
  
 
Notice that this bookmark may not be available if CKEditor is not connected to the file manager, such as CKFinder.
 
Notice that this bookmark may not be available if CKEditor is not connected to the file manager, such as CKFinder.
Line 64: Line 82:
 
Pressing "'''Send it to the Server'''" sends the image to the server.
 
Pressing "'''Send it to the Server'''" sends the image to the server.
  
=== Advanced ===
+
== Advanced ==
  
 
This bookmark is only for advanced users:
 
This bookmark is only for advanced users:

Revision as of 12:08, 26 October 2010

CKEditor allows you to add images to your documents in an easy and intuitive way.

To insert an image simply press the Image button on the toolbar. The Image Properties dialog window that will open lets you set configuration options that define image source, its size, display properties, or other advanced properties.

The Image Properties dialog window includes four tabs that group image options:

All tabs contain the OK and Cancel buttons that let you accept the changes or close the dialog window without performing any changes, respectively.

Once inserted into the document, the image can be edited at any time by double-clicking it. The Image Properties dialog window will open again and you will be able to introduce changes to the image configuration options.

If you attempt to close the Image Properties dialog window without saving the changes, you will be prompted to do so:

File:CKEditor image changed.png
An alert window prompting to save the changes made to the image


You can either proceed without saving your changes by choosing OK or close the alert window with the Cancel command and save the changes.


Image Info

The Image Info tab is the default tab to open after you press the Image button on the toolbar. It allows you to set the image URL and configure the way it will appear in the document.

File:CKEditor insert images.png
Image Info tab of the Image Properties window


Here is an overview of all Image Info tab elements:

  • URL — the web address of the image. The image may be located on the same server as the web site you are now in or on the external server.
    • External server: If you want to use an external address, use the full absolute path.
      Example:
      http://example.com/image1.jpg
    • Local server: If the image is located on the same server, you can use an absolute path that skips the domain name and starts with a slash.
      Example:
      /images/image2.jpg
      If CKEditor is integrated with a file browser (like CKFinder), you can also use the Browse Server button to select an image from the ones that are available on the server.
  • Alternative Text — the short textual description of the image that tells users with assistive devices (like screen readers) what the image is about. You should always provide your images with meaningful alternative text in order to make it accessible to users with disabilities.
  • Width — the width of the image in pixels. By default this is the size of the original image.
  • Height — the height of the image in pixels. By default this is the size of the original image.
  • Border — the size of the solid border around the image in pixels.
  • HSpace — the horizontal spacing (or margin) between the image border (if present) or the image itself and other document elements that surround the image, in pixels.
  • VSpace — the vertical spacing (or margin) between the image border (if present) or the image itself and other document elements that surround the image, in pixels.
  • Align — the alignment of the image in the document. Available options are Right and Left.
  • Preview — a display of the selected image formatted according to the options chosen on the left.

Image manipulation

With CKEditor you do not have to worry about resizing your image.

If the image is too big, you can alter its dimensions by entering new values into the Width and Height fields. By default the image ratio is locked, which you can see thanks to a Lock icon. This means that when you change one of the size values (width or height), the other one will be adjusted automatically.

If you want to freely modify both dimensions, click the Lock button in order to unlock the ratio. The button will now change to Unlock and a modification of one dimension will not automatically adjust the other one. To lock the image ratio again, click the Unlock button once more.

You can easily return to original image size by pressing the Resize button. This will reset the image size; the original width and height will now appear in appropriate text boxes.


Link

The second bookmark relates to "Link":

CKEditor images link.png

  • URL: defines the URL address of the image. You may also use the "Browse Sever" in order to browse the files.
  • Target: defines the target of the image (for advanced users). User may choose from New Window ( _blank ), Topmost Window ( _top ), Same Window ( _self ) or Parent Window ( _parent ).

Upload

Notice that this bookmark may not be available if CKEditor is not connected to the file manager, such as CKFinder.

The third bookmark is the "Upload" section:

CKEditor images upload.png

  • Upload: specifies the location of the image file on your local hard drive. User may also use "Browse" instead of typing the location manually.

Pressing "Send it to the Server" sends the image to the server.

Advanced

This bookmark is only for advanced users:

CKEditor images advanced.png

  • Id: specifies image's ID.
  • Language Direction: sets the language direction from left to right ( LTR ) or from right to left ( RTL ).
  • Language Code: specifies the language code e.g. en, pt, pl.
  • Long Description URL: specifies the description of the page.
  • Stylesheet Classes: specifies the name of the CSS class.
  • Advisory Title: specifies the description of the target object.
  • Style: specifies the style.