user2511671
user2511671

Reputation:

How to change the image path in Tinymce

When I'm uploading a image it stored in the path that I defined (pnetwork/images/tiny)in my config.php file as in the folowing image enter image description here

But when I changed the path to "http://domainName.com/pnetwork/images/tiny" it gives error. Please give me solution i need the full path

Upvotes: 1

Views: 6260

Answers (3)

Venkatesh
Venkatesh

Reputation: 108

why dont you to use latest download from http://www.tinymce.com/ it has all options with demos

Upvotes: 1

AntonE
AntonE

Reputation: 682

You can try to set domain name by preview.urlprefix parameter http://www.tinymce.com/wiki.php/MCImageManager:preview.urlprefix

You can set this parameter in config file or dynamically by code. So you need have something like this in config file:

With this setting domain name should add to pictures that was added by tinyMCE image manager

Upvotes: 1

user2090918
user2090918

Reputation: 63

Check the following links

Dynamically set TinyMCE file path for file browser and image viewier using PHP

http://www.tinymce.com/wiki.php/API3:class.tinymce.Editor

You should check the image_path value in tinymce.js file

Upvotes: 1

Related Questions