You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#111669 eDocman plugin with SP page builder thowing error

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by vmurphy on Thursday, 11 August 2022 16:41 BST

vmurphy
Hi,
Not really sure if this is a JCE problem or elsewhere, so I'm trying all options (apologies if this is not for you).
Joomla 4 site using joomshaper SP page builder pro 4.0.1. Using JCE pro with editor button for linking to eDocman docs.
All components using latest version. PHP 8.0.21
When in JCE, clicking on button for eDocman, bring up modal window for selection of documents. Click on document, nothing happens.
With inspector, I can see it's throwing a JS error.

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

The js file involved is from eDocman and the code around this line shows:
var editor = Joomla.getOptions('EDEditor');
var tag = ''+title+'';
window.parent.Joomla.editors.instances[editor].replaceSelection(tag);

I've tested this outside of SP page builder using frontend editing and all works fine. I've opened a ticket with eDocman also to see what they think.

Any thoughts/suggestions much appreciated.

Cheers...Vince

Ryan
I've tested this outside of SP page builder using frontend editing and all works fine. I've opened a ticket with eDocman also to see what they think.


Sounds like an issue in SP PageBuilder 4.0.1

Does this work with the core Tinymce editor?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

vmurphy
Hi Ryan,
Thanks for the response. I have not tried it with Tinymce yet, I was not sure if the eDocman button worked in Tiny or only with your JCE.
I'll give it a try.
Dam from eDocman is logged in taking a look currently, so I'll let him finish, then I try Tiny.

Cheers...Vince