Insert Module: Insert Inline Images into Content
You are here
The insert module is a useful utility for uploading images into the body of your drupal content.
By default, the WYSIWYG module with CKEditor has the ability to add images into your content by specifying the image’s url. This is adequate if your images are sourced from online locations. However, if you need to upload an image from your machine and display it within the body of your content, then the insert module becomes very useful.
How to use:
- Download the insert module from http://drupal.org/project/insert and install it on your site.(See this http://drupal.org/documentation/install/modules-themes/modules-7 for how to install drupal modules)
- Open content types and select manage fields for the content type you want to add images to.
- Add a new field we will name our new field, Insert Image.
- In the select-a-field-type dropdown, choose image
- In the -select a widget- field, choose image.
- Save the content type changes.
- In the Field Settings dialog, choose your upload destination then save the field settings.
- In the settings dialog, look for the insert field
- Expand the field and be sure to select the dialog that states Enable insert button. Add any other settings you need to and save.
- Add a new article page. In the edit page, you will see the Insert image field we just created. Browse your machine for the image you want to add and upload the image.
- After the image is uploaded the image insert dialog will appear like shown:
- Click on the body where you want the image inserted then click insert.
- Save the page and you will have inline images in your content.
Tips: You can style your <img> tags to float left if you want the text of your article to flow around the inserted images.