I have all kinds of weird path problems in tinyMCE. I'm not sure if this is due to MCImageManaI will try to summarize my setup:
I have a .NET site. At the moment, the root of the application is at http: // localhost / APP /
tiny_mce is located in ~ / tiny_mce, the imagemanager plugin is, of course, located in ~ / tiny_mce / plugins / imagemanager
~ / uploads is where I want the images to be uploaded / managed
~ / tiny_mce / plugins / imagemanager / web.config contains this key: <add key="filesystem.rootpath" value="../../../upload" />
It also contains <add key="preview.urlprefix" value="{proto}://{host}/APP/" /> to take into account that the root of the application does not belong to the root of the host name (unfortunately, I do not need to specify hard this .... but this is another problem)
So far so good - when I look at the image dialog in tinyMCE, I get the image browser and look at the correct folder
Oddities begin when I select an image. Here, what is placed in the "Image URL" field in the "Insert / edit image" form:
../APPot/downloads/Image.jpg
APPot? What the heck? Shouldn't it be "upload / Image.JPG"?
It was with
tinyMCE.init({ //..... relative_urls: true, remove_script_host: true, document_base_url: 'http://localhost/APP/' });
and
mcImageManager.init({ relative_urls: true, remove_script_host: true, document_base_url: 'http://localhost/APP/' });
I canβt say whether this second one is needed or even something to do.
where is "from"? I suppose its existence is explained by why it cannot understand how to use document_base_url.
If I reset the url prefix to the original parameter: <add key="preview.urlprefix" value="{proto}://{host}/" /> , I get:
../downloads/DSCF0546.JPG
which actually seems a little closer. There is no "ot", but it is a directory.
Does anyone know what is going on?