By Zack Paige on Sunday, 06 May 2018
Posted in General
Replies 1
Likes 0
Views 519
Votes 0
Just curoius if it is possible to give two authors two different editors? I really like the built in one with blocks, and he likes the tinyMCE

I looked for the possibilty in the documentation but i couldn't find something to solve that problem.

Any help will be appreciated.

Zack
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here.

Unfortunately currently that was not possible to achieve this, but you can modify this into the core file.

JoomlaFolder/administrator/components/com_easyblog/tables/profile.php


public function getEditor()
{
$config = EB::config();
$editor = $config->get('layout_editor');

// Test if the plugin is enabled
$enabled = JPluginHelper::isEnabled('editors', $editor);

// If not enabled, we load easyblog built in composer by default
if (!$enabled) {
$editor = 'composer';
}

return $editor;
}


Replace with :

public function getEditor()
{
$config = EB::config();
$editor = $config->get('layout_editor');

// Test if the plugin is enabled
$enabled = JPluginHelper::isEnabled('editors', $editor);

// If not enabled, we load easyblog built in composer by default
if (!$enabled) {
$editor = 'composer';
}

$params = $this->user->params;
$params = json_decode($params);

if (!isset($params->editor) || !$params->editor) {
return $editor;
}

return $params->editor;
}


Once you replace above code into your file, then you can set that user editor option from your site backend > users > manage > edit profile , you can refer on my second attached screenshot below.
·
Sunday, 06 May 2018 09:03
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post