Ticket #19 (closed enhancement: fixed)
Setable root path for WYMeditor scripts
| Reported by: | Seoleth | Owned by: | jf.hovinne |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.3 |
| Component: | editor | Version: | trunk |
| Keywords: | paths | Cc: |
Description
It would be very useful to be able to set a root path for the wymeditor-folder. At the moment I'm building a CMS system and WYMEditor as a plugin. This could be done in one of the constants.
sWYM_PATH = "/cms/plugins/orlokwymeditor/wymeditor/";
I can of course change the paths by replacing strings in the affected variables (for example in sIframeHtml and sDialogHtml). And maybe that's the idea altogether. But I figured I'd post a ticket just in case.
Example
My WYMeditor-folder is places in a plugin-folder, as such:
/cms/plugins/orlokwymeditor/wymeditor/jquery.wymeditor.js
I include this script, and others, from:
/cms/admin/index.php?page=pageform
This, however, makes the paths in the script wrong (in the sIframeHtml variable):
/cms/admin/wymeditor/wymiframe.html
This also appears in the WYMeditor-generated dialogs (in sDialogHtml variable):
/cms/admin/jquery/jquery.js /cms/admin/wymeditor/jquery.wymeditor.js