Advanced HTML Editor 3 Support Product Page

Solved

Link

Reported 10 Aug 2012 22:29:42
1
has this problem
10 Aug 2012 22:29:42 Chuck Borrelli posted:
The page I am editing is located here... I can email a username and password if you need it, but you may be able to resolve without...

www.dynamicsights.com/dhs/ioc/

The issue is similar to:
www.dmxzone.com/support/18424/topic/52727/?highlight=Link%0A

And it was working before...

It is creating an extra directory when editing. The declaration of the editor (which is done in the .dwt file is:


<script type="text/javascript">
  // <![CDATA[
 jQuery(document).ready(
   function()
     {
       jQuery("#pgBody").dmxEditor(
         {"FileManager": {"path": "files", "allowUpload": true, "allowCreate": true, "allowRename": true, "allowDelete": true}, "width": 800, "height": 400, "allowUpload": true, "uploadPath": "files", "uploadProcessor": "php", "allowResize": true, "resizeMaxWidth": 500, "resizeMaxHeight": 800, "includeCss": "ioc.css", "skin": "office", "extensions": ["FileManager", "path_browser", "resizer"]}
       );
     }
 );
  // ]]>
</script>


now, the REAL directory is up one level, but DW does not update the path... that is, it originally was : {"FileManager": {"path": "../files", "

but I had to change it because DW did NOT update the path in the declaration on the pages based on the template.

Thus instead of the link being:
/files/filename.ext

it is coming out as
dhs/ioc/files/filename.ext

There must be code somewhere assuming that this is always done from the root directory of the website, but his is obviously not always the case.

Suggestions appreciated

Replies

Replied 13 Aug 2012 06:44:59
13 Aug 2012 06:44:59 Teodor Kuduschiev replied:
Hello Chuck,

Please send me the DWT file to
Replied 14 Aug 2012 01:55:31
14 Aug 2012 01:55:31 Chuck Borrelli replied:
I resolved this issue by removing the entire script library and rebuilding it.

Reply to this topic