After saving texts wroted in input in WYSIWYG editor have wrong format for view.
Sometimes also bad formating stayed after reopening for modification.
The same problem occurs even when the WYSIWYG editor is turned off and the text is entered in the description field.
I want show as same formating if used ENTER only. and same formating texts pasted from other plain text editors (CTRL+C
form notepad.exe, etc. with new/empty lines) to Dolibarr WYSIWYG editor inputs (CTRL+V).

Showing as (buged):

or randomly showing as (buged):


Showing as (show is ok):

Hi,
Did you fix that ? I have the same bug...
Simon.
I fixed that, the function GETPOST in the file /htdocs/core/lib/functions.lib.php at the line 302 (in the version 12.0.1) have some default parameters. The "check" parameter had by default the value "alphanohtml", this value make html dont persistent when a form with some HTML content is submit (not in all case).
To fix that : change the default value of the var check to "none" (like in the previous version 11.0.4)
Could you submit a pull request with the fix?
Could you submit a pull request with the fix?
i dont know how. And solution from @PlatiScript is good ... this is problem fixed.
Thank you @PlatiScript very much.
Most helpful comment
I fixed that, the function GETPOST in the file /htdocs/core/lib/functions.lib.php at the line 302 (in the version 12.0.1) have some default parameters. The "check" parameter had by default the value "alphanohtml", this value make html dont persistent when a form with some HTML content is submit (not in all case).
To fix that : change the default value of the var check to "none" (like in the previous version 11.0.4)