Fix for ETHREEOH-2613: "Failed to execute method FilePickerBean.getFilePickerData: Exception in Transaction" when try to update local links with ajax WCM file picker.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@17090 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2009-10-22 14:57:27 +00:00
parent fc7c241ce3
commit 78d0542f1a

View File

@@ -74,6 +74,12 @@ function alfresco_TinyMCE_urlconverter_callback(href, element, onsave)
function alfresco_TinyMCE_file_browser_callback(field_name, url, type, win)
{
// remove url prefix ready for picker
if (url.startsWith(alfresco.constants.AVM_WEBAPP_URL))
{
url = url.replace(alfresco.constants.AVM_WEBAPP_URL, "");
}
//tinyMCE.loadCSS doesn't seem to work with plugins so add css manually
//tinyMCE.activeEditor.dom.loadCSS(alfresco.constants.WEBAPP_CONTEXT + "/css/xforms.css");
var headEl = win.document.getElementsByTagName("head")[0];