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 Online

Official support hours:
Monday To Friday
From 09:00 To 17:00 Europe/London (BST)
  Friday, 03 September 2021
  9 Replies
  2K Visits
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
more than a month ago
·
#108787
Accepted Answer
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...

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

more than a month ago
·
#108752
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.

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

more than a month ago
·
#108759
mmm strange,
ok I'll do some other tests and back to you.

Thanks Ryan
more than a month ago
·
#108761

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

more than a month ago
·
#108786
Done
more than a month ago
·
#108787
Accepted Answer
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...

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

more than a month ago
·
#108788
thanks a lot Ryan.
I will tell them :)
webmastergreg selected the reply #108787 as the answer for this post — 10 months ago
more than a month ago
·
#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
more than a month ago
·
#111102
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


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

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

more than a month ago
·
#111104
Hi
here you are my topic, feel free to post in it if you want.
https://forum.virtuemart.net/index.php?topic=147269
  • Page :
  • 1
There are no replies made for this post yet.
Be one of the first to reply to this post!