cancel
Showing results for 
Search instead for 
Did you mean: 

Change wysiwyg default directory

Change wysiwyg default directory

Hi

 

I've a test environment site and have upgraded to Magento V1.9 . When using the WYSIWYG editor the root directory seems to be uploading images to 'media/wysiwyg' directory whereas before update which was Magento V1.4.2  the root directory was 'media/' folder.

 

How can I change WYSIWYG root directory back to the 'media/' folder?

 

kind regards

 

Nick

 

 

1 REPLY

Re: Change wysiwyg default directory

First of all, I'd suggest to not change this at all, because of some issues you might get there. I'd suggest to migrate all the images that you have in your media/ folder to media/wysiwyg/. And also check the image paths that are now broken in your database.

 

But if you really want to change it, there is a model "Mage_Cms_Model_Wysiwyg_Config" where the constant "IMAGE_DIRECTORY" is set. This is set to "wysiwyg". So it might be possible to create a custom extension/addon for this, where you can override this constant. Changing it with an empty string might work.

 

I haven't tested this myself, because I don't think it's a proper solution, so it might not work in the end or give you a lot of issues and errors.

If this response was helpful to you, consider giving kudos to this post.
If this response solved your problem, click accept as solution to help others solve this