SP Builder 4.0.1 And Linking To Files - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

SP Builder 4.0.1 And Linking To Files

VM

Vince Murphy

SP Page Builder 3 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

0
5 Answers
John Juhl
John Juhl
Accepted Answer
3 years ago #79080

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

0
VM
Vince Murphy
Accepted Answer
3 years ago #79083

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.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 3 years ago #79108

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.

0
VM
Vince Murphy
Accepted Answer
3 years ago #79433

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

0
VM
Vince Murphy
Accepted Answer
3 years ago #79441

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.

0