FIX Force of HTML content only for ckeditor
This commit is contained in:
parent
c5ace5774e
commit
a0a440cf5f
@ -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 {
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user