mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-23 09:51:33 +01:00
can set ace editor to readonly
This commit is contained in:
@@ -395,7 +395,7 @@ class Documentation
|
||||
{
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/class/doleditor.class.php';
|
||||
print '<div class="documentation-code">';
|
||||
$content = implode("\n", $lines);
|
||||
$content = implode("\n", $lines) . "\n";
|
||||
$doleditor = new DolEditor(md5($content), $content, '', 0, 'Basic', 'In', true, false, 'ace', 0, '99%', 1);
|
||||
print $doleditor->Create(1, '', false, '', $option);
|
||||
print '</div>';
|
||||
|
||||
@@ -322,10 +322,9 @@ $documentation->showSidebar(); ?>
|
||||
'print dolGetButtonTitle($btnLabel, \'\', \'fa fa-file\', \'#\', \'\', $status);',
|
||||
);
|
||||
|
||||
echo $documentation->showCode($lines); ?><div class="documentation-example">
|
||||
echo $documentation->showCode($lines, 'php'); ?><div class="documentation-example">
|
||||
<?php
|
||||
|
||||
|
||||
$btnLabel = $langs->trans('Label', 'php');
|
||||
print dolGetButtonTitle($btnLabel, '', 'fa fa-download', '#', '', 0, ['forcenohideoftext'=>1]); // Not Enough Permissions
|
||||
print dolGetButtonTitle($btnLabel, '', 'fa fa-download', '#', '', 1, ['forcenohideoftext'=>1]); // Active
|
||||
@@ -333,7 +332,6 @@ $documentation->showSidebar(); ?>
|
||||
print dolGetButtonTitle($btnLabel, '', 'fa fa-download', '#', '', -1, ['forcenohideoftext'=>1]); // Functionality is disabled
|
||||
print dolGetButtonTitle($btnLabel, '', 'fa fa-download', '#', '', -2, ['forcenohideoftext'=>1]); // Disabled without info
|
||||
|
||||
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user