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.

#108749 No more editor in virtuemart custom fields

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 webmastergreg on Monday, 23 May 2022 08:39 BST

webmastergreg
Hello,
I use several custom fields in virtuemart that are editor type.
Then when I assign this custom field to a product I can use JCE editor tu put what I want.
But since the v2.9.12 I do not have JCE anymore, but just the raw html instead.

I must say that JCE appears normally for the edition of the product description.

If I reinstall JCE 2.9.11 all is fine, editor appear normally.

I'm with Joomla 3.10.1 and just in case Virtuemart 3.8.6

Regards

Ryan
I'm not seeing this in my tests with the latest Virtuemart 3.8.8 and JCE Pro 2.9.14 - https://www.joomlacontenteditor.net/downloads/editor/pro/latest

My test is rather simplistic, with a stock virtuemart install and one "editor" custom field, tested while creating a new product.

Ryan Demmer

Lead Developer / CEO / CTO

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

webmastergreg
mmm strange,
ok I'll do some other tests and back to you.

Thanks Ryan

Ryan
Please send me a login - https://www.joomlacontenteditor.net/contact/site-login

Ryan Demmer

Lead Developer / CEO / CTO

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

webmastergreg
Done

Ryan
The issue is caused by some javascript in Virtuemart, which attempts to create a new editor instance, before all javascript (including JCE javascript) has loaded on the page, ie:

<script type="text/javascript">// Creates a new editor instance
    tinymce.execCommand("mceAddControl",true,"field-15-customfield_value")
</script>
This script is in administrator/components/com_virtuemart/models/customfields.php on line 788 The reason this happens with JCE Pro 2.9.12+ and not JCE Pro 2.9.11, is that the way the javascript is loaded in 2.9.12+ was changed for Joomla 4 compatability. Nevertheless, Virtuemart should not try an execute a javascript function until it is sure that javascript function has actually loaded! Until Virtuemart fixes this (you might want to inform them of the issue), you will need to use JCE Pro 2.9.11 Not sure why this worked in my tests though...

Ryan Demmer

Lead Developer / CEO / CTO

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

webmastergreg
thanks a lot Ryan.
I will tell them :)

theictshak
Hi
I am also having this issue.
I have joomla 3.10.9, virtuemart 4.0.2 and had JCE 2.9.22
Have brought the JCE back to 2.9.11 and is still an issue.
Any ideas on how I can fix it.
Thanks
Margaret

Ryan
[quotePost id="111086"]Hi
I am also having this issue.
I have joomla 3.10.9, virtuemart 4.0.2 and had JCE 2.9.22
Have brought the JCE back to 2.9.11 and is still an issue.
Any ideas on how I can fix it.
Thanks
Margaret
[/quotePost]

This is not an issue I can solve. You will need to speak to the Virtuemart developers about this.

Ryan Demmer

Lead Developer / CEO / CTO

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

webmastergreg
Hi
here you are my topic, feel free to post in it if you want.
https://forum.virtuemart.net/index.php?topic=147269