News:

Support the VirtueMart project and become a member

Main Menu

How to use a different editor between Joomla and Virtuemart?

Started by spinoops, April 26, 2020, 11:10:37 AM

Previous topic - Next topic

spinoops

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,


Jörgen

This looks more like an issue with dropeditor. As you say it works with other editors.
Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

spinoops

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..


AH

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)
Regards
A

Joomla 3.10.11
php 8.0