VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: spinoops on April 26, 2020, 11:10:37 AM

Title: How to use a different editor between Joomla and Virtuemart?
Post by: spinoops on April 26, 2020, 11:10:37 AM
Hi,

Is there a way to use a different editor between Joomla 3.9.13 and Virtuemart 3.6.10 ?

I actually use DropEditor and it's not compatible with the Virtuemart Translation System : when I change the language, the editor always stays in the first language. (No problem with Tiny MCE). So I would like to use DropEditor for Joomla and TinyMCE for Virtuemart.

Thanks for your anwser and best regards,

Title: Re: How to use a different editor between Joomla and Virtuemart?
Post by: Jörgen on April 26, 2020, 12:43:44 PM
This looks more like an issue with dropeditor. As you say it works with other editors.
Jörgen @ Kreativ Fotografi
Title: Re: How to use a different editor between Joomla and Virtuemart?
Post by: spinoops on April 26, 2020, 13:34:25 PM
Just need an anwser to my question.

How to use different editor between Joomla and Virtuemart?

If I wanted to use a basic Editor I wouldn't have asked my question here..

Title: Re: How to use a different editor between Joomla and Virtuemart?
Post by: AH on April 26, 2020, 14:06:33 PM
This may work - Search for every instance in VM of

JFactory::getEditor();

I found 8.

You can then add the editor you want to use in the ()
e.g.

JFactory::getEditor('codemirror');

This failed when I tried 'tinymce' but worked for 'codemirror'

You could make it more generic and do:

$VMoverrideEditor = VmConfig::get('VMoverrideEditor','');
$editor = JFactory::getEditor($VMoverrideEditor);


Then add the hidden option in the configuration virtuemart.cfg file
VMoverrideEditor=codemirror,

Then open vm/admin/confiuration and just save to store the new "hidden" config value


When you upgrade VM you will need to reapply all the file changes (not the hidden config)
Title: Re: How to use a different editor between Joomla and Virtuemart?
Post by: spinoops on April 26, 2020, 15:58:29 PM
Thanks a lot !  :)