FIX javascript error when ckeditor module not enabled
This commit is contained in:
parent
22c548e80b
commit
069df82380
@ -177,7 +177,7 @@ class DolEditor
|
|||||||
$out.= $this->content;
|
$out.= $this->content;
|
||||||
$out.= '</textarea>';
|
$out.= '</textarea>';
|
||||||
|
|
||||||
if ($this->tool == 'ckeditor' && ! empty($conf->use_javascript_ajax))
|
if ($this->tool == 'ckeditor' && ! empty($conf->use_javascript_ajax) && ! empty($conf->fckeditor->enabled))
|
||||||
{
|
{
|
||||||
if (! defined('REQUIRE_CKEDITOR')) define('REQUIRE_CKEDITOR','1');
|
if (! defined('REQUIRE_CKEDITOR')) define('REQUIRE_CKEDITOR','1');
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user