SP Builder 4.0.1 and linking to files - Forum | JoomShaper
Awaiting an answer SP Page Builder

SP Builder 4.0.1 and linking to files

Asked by Vince Murphy 4 years ago Last activity 4 years ago

Thanks for the update to 4, we are working our heads around things.
In version 3 we used JCE within the text add-on with a custom button to link in documents from the eDocman component (used for our documents library). Now with 4, JCE is no longer available in the text add-on and we have no ability to pull in files from eDocman. Any ideas?
Is there or will there be documentation for writing add-ons?
Where does the media manager/attachments look for files?

Thanks...Vince

5 replies

John Juhl

Just got an Email from JCE re. an update refering to that issue - tells me that they are aware of these issues at JCE...

Vince Murphy Asked this

Thanks John. I saw an email from JCE in relation to the builder but it appeared to be related to version 3.8.7 not version 4, so I ignored. I'll take another look.

Paul Frankowski Senior Staff
4 years ago · edited

Hi,

JCE features are not cut-off in SPPB, so it has to be JCE code problem somehow.

Few seconds ago, I tested JCE Pro 2.9.29 and I was able to browse and link pdf files - so hopefully that part still works.
About eDocman you have to ask Ryan Demmer on his forum.

Vince Murphy Asked this

Thanks Paul.
JCE does appear to be working ok. I've traced the problem to the eDocman editor plugin inside JCE, which throws the error:

Uncaught TypeError: Cannot read properties of undefined (reading 'replaceSelection')
at window.jSelectEdocmanView (admin-documents-modal.js:41:56)
at HTMLAnchorElement.<anonymous> (admin-documents-modal.js:60:37)

The problem code appears to be around:
var editor = Joomla.getOptions('EDEditor');
var tag = '<a class=\"edocmanxtdlink\" href='+'\"index.php?option=com_edocman&amp;task=document.viewdoc&amp;id='+id+ '&amp;Item
id=' + itemid + '\">'+title+'</a>';
window.parent.Joomla.editors.instances[editor].replaceSelection(tag);

This is as far as my knowledge goes on this. I'll reach out to the eDocman developer and see what he says.
This all worked ok in the back end, so I'm suspecting it might be something related to frontend editing.

Cheers...Vince

Vince Murphy Asked this

Another quick update. I tested all this outside of page builder, using front end editing with JCE and the eDocman plugin. It does work correctly and no error is thrown. I've opened a ticket with eDocman to see what they think.

Log in to reply.