mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Debug v20 - Fix regression
This commit is contained in:
parent
de19578a93
commit
9cb9ccca0b
|
|
@ -3981,7 +3981,7 @@ if ($action == 'editcss') {
|
|||
print '<tr><td class="tdtop">';
|
||||
print $langs->trans('WEBSITE_HTML_HEADER');
|
||||
$htmlhelp = $langs->trans("Example").' :<br>';
|
||||
$htmlhelp .= dol_htmlentitiesbr($htmlheadercontentdefault);
|
||||
$htmlhelp .= dol_nl2br(dol_htmlentities($htmlheadercontentdefault)); // do not use dol_htmlentitiesbr here, $htmlheadercontentdefault is HTML with content like <link> and <script> that we want to be html encode as they must be show as doc content not executable instruction.
|
||||
$textwithhelp = $form->textwithpicto('', $htmlhelp, 1, 'help', '', 0, 2, 'htmlheadertooltip');
|
||||
$htmlhelp2 = $langs->trans("LinkAndScriptsHereAreNotLoadedInEditor").'<br>';
|
||||
print $form->textwithpicto($textwithhelp, $htmlhelp2, 1, 'warning', '', 0, 2, 'htmlheadertooltip2');
|
||||
|
|
@ -4715,8 +4715,8 @@ if ($action == 'editmeta' || $action == 'createcontainer') { // Edit properties
|
|||
print '<tr><td class="tdhtmlheader tdtop">';
|
||||
$htmlhelp = $langs->trans("EditTheWebSiteForACommonHeader").'<br><br>';
|
||||
$htmlhelp .= $langs->trans("Example").' :<br>';
|
||||
$htmlhelp .= dol_htmlentitiesbr($htmlheadercontentdefault);
|
||||
print $form->textwithpicto($langs->trans('HtmlHeaderPage'), $htmlhelp, 1, 'help', '', 0, 2, 'htmlheadertooltip');
|
||||
$htmlhelp .= dol_nl2br(dol_htmlentities($htmlheadercontentdefault)); // do not use dol_htmlentitiesbr here, $htmlheadercontentdefault is HTML with content like <link> and <script> that we want to be html encode as they must be show as doc content not executable instruction.
|
||||
print $form->textwithpicto($langs->transnoentitiesnoconv('HtmlHeaderPage'), $htmlhelp, 1, 'help', '', 0, 2, 'htmlheadertooltip');
|
||||
print '</td><td>';
|
||||
$poscursor = array('x' => GETPOST('htmlheader_x'), 'y' => GETPOST('htmlheader_y'));
|
||||
$doleditor = new DolEditor('htmlheader', $pagehtmlheader, '', '120', 'ace', 'In', true, false, 'ace', ROWS_3, '100%', '', $poscursor);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user