FIX Force of HTML content only for ckeditor
Conflicts: htdocs/modulebuilder/index.php
This commit is contained in:
parent
5a9d968a75
commit
b11ef125c3
@ -88,7 +88,7 @@ class DolEditor
|
|||||||
// Define some properties
|
// Define some properties
|
||||||
if (in_array($this->tool, array('textarea', 'ckeditor', 'ace')))
|
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);
|
$this->content = dol_nl2br($content);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@ -2005,9 +2005,7 @@ elseif (!empty($module))
|
|||||||
}
|
}
|
||||||
|
|
||||||
dol_fiche_end();
|
dol_fiche_end();
|
||||||
}
|
} else { // Edit text file
|
||||||
else
|
|
||||||
{
|
|
||||||
$fullpathoffile = dol_buildpath($file, 0, 1); // Description - level 2
|
$fullpathoffile = dol_buildpath($file, 0, 1); // Description - level 2
|
||||||
|
|
||||||
if ($fullpathoffile)
|
if ($fullpathoffile)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user