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
|
||||
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 {
|
||||
|
||||
@ -2005,9 +2005,7 @@ elseif (!empty($module))
|
||||
}
|
||||
|
||||
dol_fiche_end();
|
||||
}
|
||||
else
|
||||
{
|
||||
} else { // Edit text file
|
||||
$fullpathoffile = dol_buildpath($file, 0, 1); // Description - level 2
|
||||
|
||||
if ($fullpathoffile)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user