Add class specific to web page ref
This commit is contained in:
parent
f445410415
commit
ff7c122b6d
@ -132,7 +132,7 @@ function dolSavePageContent($filetpl, $object, $objectpage)
|
|||||||
$tplcontent.= '</head>'."\n";
|
$tplcontent.= '</head>'."\n";
|
||||||
|
|
||||||
$tplcontent.= '<!-- File generated by Dolibarr website module editor -->'."\n";
|
$tplcontent.= '<!-- File generated by Dolibarr website module editor -->'."\n";
|
||||||
$tplcontent.= '<body id="bodywebsite" class="bodywebsite">'."\n";
|
$tplcontent.= '<body id="bodywebsite" class="bodywebsite bodywebpage-'.$objectpage->ref.'">'."\n";
|
||||||
$tplcontent.= $objectpage->content."\n";
|
$tplcontent.= $objectpage->content."\n";
|
||||||
$tplcontent.= '</body>'."\n";
|
$tplcontent.= '</body>'."\n";
|
||||||
$tplcontent.= '</html>'."\n";
|
$tplcontent.= '</html>'."\n";
|
||||||
|
|||||||
@ -3329,7 +3329,7 @@ if ($action == 'preview' || $action == 'createfromclone' || $action == 'createpa
|
|||||||
// Do not enable the contenteditable when page was grabbed, ckeditor is removing span and adding borders,
|
// Do not enable the contenteditable when page was grabbed, ckeditor is removing span and adding borders,
|
||||||
// so editable will be available only from container created from scratch
|
// so editable will be available only from container created from scratch
|
||||||
//$out.='<div id="bodywebsite" class="bodywebsite"'.($objectpage->grabbed_from ? ' contenteditable="true"' : '').'>'."\n";
|
//$out.='<div id="bodywebsite" class="bodywebsite"'.($objectpage->grabbed_from ? ' contenteditable="true"' : '').'>'."\n";
|
||||||
$out.='<div id="divbodywebsite" class="bodywebsite">'."\n";
|
$out.='<div id="divbodywebsite" class="bodywebsite bodywebpage-'.$objectpage->ref.'">'."\n";
|
||||||
|
|
||||||
$newcontent = $objectpage->content;
|
$newcontent = $objectpage->content;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user