diff --git a/htdocs/website/index.php b/htdocs/website/index.php index 3d54742b38d..773cd83eea4 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -3278,6 +3278,12 @@ if (!GETPOST('hide_websitemenu')) { // Edit HTML content print ''.dol_escape_htmltag($langs->trans($conf->dol_optimize_smallscreen ? "HTML" : "EditHTMLSource")).''; + + // Edit CKEditor + if (getDolGlobalInt('WEBSITE_ALLOW_CKEDITOR')) { + print ''.dol_escape_htmltag($langs->trans($conf->dol_optimize_smallscreen ? "CKEditor" : "CKEditor")).''; + } + print ''; @@ -4496,8 +4502,7 @@ if ($action == 'editsource') { $doleditor->Create(0, '', false, 'HTML Source', 'php'); } -/*if ($action == 'editcontent') -{ +if ($action == 'editcontent') { // Editing with default ckeditor $contentforedit = ''; @@ -4506,13 +4511,15 @@ if ($action == 'editsource') { //$contentforedit.=''."\n"; $contentforedit .= $objectpage->content; + $nbrep = array(); $contentforedit = preg_replace('/(GETPOST('PAGE_CONTENT_x'), 'y'=>GETPOST('PAGE_CONTENT_y')); - $doleditor=new DolEditor('PAGE_CONTENT',$contentforedit,'',500,'Full','',true,true,true,ROWS_5,'90%',$poscursor); + $doleditor=new DolEditor('PAGE_CONTENT', $contentforedit, '', 500, 'Full', '', true, true, true, ROWS_5, '90%', 0, $poscursor); $doleditor->Create(0, '', false); -}*/ +} + print "\n"; print "\n";