FIX Force of HTML content only for ckeditor

This commit is contained in:
Laurent Destailleur 2020-05-29 03:26:05 +02:00
parent c5ace5774e
commit a0a440cf5f
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ class DolEditor
// Define some properties
if (in_array($this->tool, array('textarea', 'ckeditor', 'ace')))
{
if (! dol_textishtml($content) && $this->tool != 'textarea') { // We force content into HTML if we are using an advanced editor if content is not HTML.
if ($this->tool == 'ckeditor' && ! dol_textishtml($content)) { // We force content to be into HTML if we are using an advanced editor if content is not HTML.
$this->content = dol_nl2br($content);
}
else {

View File

@ -1930,7 +1930,7 @@ if ($module == 'initmodule')
}
dol_fiche_end();
} else {
} else { // Edit text file
$fullpathoffile = dol_buildpath($file, 0, 1); // Description - level 2
if ($fullpathoffile)