WYSIWYG Image upload quick setup with drush

Last updated on
30 April 2025
Setting up WYSIWYG image upload using drush

For all using drush, this is how to set up all dependencies quickly (even jquery ui library and ckeditor library).

If you are testing or developing, be sure to uncomment the github version in the make file, instead of the current drupal.org release, so you test the most recent version.

Make file

api=2
core=6.x

;the current release of wui
projects[]=wysiwyg_imageupload

; or the current development master for testing / development (uncomment to use)
;projects[wysiwyg_imageupload][type] = module
;projects[wysiwyg_imageupload][download][type] = git
;projects[wysiwyg_imageupload][download][url] = git://github.com/EugenMayer/wysiwyg_imageupload

;drupal
projects[]=drupal

projects[jquery_update][version] = 2.0-alpha1
projects[]=imagecache
projects[]=imageapi 
projects[]=wysiwyg
projects[]=jquery_ui
projects[]=jquery_ui_dialog

; Some extra sauce (optional modules)
projects[] = admin_menu
projects[] = views
projects[] = lightbox2

libraries[jquery.ui][download][type]="get"
libraries[jquery.ui][download][url]="http://jquery-ui.googlecode.com/files/jquery-ui-1.7.3.zip"
libraries[jquery.ui][destination]="modules/jquery_ui/"

libraries[ckeditor][download][type]="get"
libraries[ckeditor][download][url]="http://download.cksource.com/CKEditor/CKEditor/CKEditor%203.4.1/ckeditor_3.4.1.tar.gz"

; Having a second wysiwyg editor is a good idea for testing!
libraries[tinymce][download][type] = "get"
libraries[tinymce][download][url] = "http://downloads.sourceforge.net/project/tinymce/TinyMCE/3.2.6/tinymce_3_2_6.zip"

Make file:You can skip all steps in here when you use drush make and the wui.make file in the module. This will install all modules, dependencies and liberaries you need. A single-command complete setup.

drush --prepare-install make wui.make wui

Drush

Download all dependencies

drush dl jquery_update-6.x-2.0-alpha1 imagecache imageapi wysiwyg wysiwyg_imageupload jquery_ui jquery_ui_dialog lightbox2 views

Optional: Installation CKeditor ( if needed )

cd sites/all && mkdir libraries && cd libraries && wget http://download.cksource.com/CKEditor/CKEditor/CKEditor%203.3.1/ckeditor_3.3.1.tar.gz
tar xf ckeditor_3.3.1.tar.gz 

Install jquery_ui. just be in the sites/all/libraries when you start.

cd ../modules/jquery_ui && wget http://jqueryui.com/download/jquery-ui-1.7.3.custom.zip && unzip jquery-ui-1.7.3.custom.zip && mv development-bundle jquery.ui

Finally enable all modules

drush en wysiwyg_imageupload imageapi_gd jquery_update jquery_ui imageapi_gd wysiwyg_imageupload_lightbox wysiwyg_imageupload_browser

- Now setup the CKeditor (or TinyMCE, if the makefile method was used) as the WYSWIYG editor
- enable the imageupload button there
- configure the input filter "Drupal Wiki inline images" and you are set to go

Help improve this page

Page status: Not set

You can: