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';
|
require_once DOL_DOCUMENT_ROOT . '/core/class/doleditor.class.php';
|
||||||
print '<div class="documentation-code">';
|
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);
|
$doleditor = new DolEditor(md5($content), $content, '', 0, 'Basic', 'In', true, false, 'ace', 0, '99%', 1);
|
||||||
print $doleditor->Create(1, '', false, '', $option);
|
print $doleditor->Create(1, '', false, '', $option);
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|||||||
@@ -322,10 +322,9 @@ $documentation->showSidebar(); ?>
|
|||||||
'print dolGetButtonTitle($btnLabel, \'\', \'fa fa-file\', \'#\', \'\', $status);',
|
'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
|
<?php
|
||||||
|
|
||||||
|
|
||||||
$btnLabel = $langs->trans('Label', 'php');
|
$btnLabel = $langs->trans('Label', 'php');
|
||||||
print dolGetButtonTitle($btnLabel, '', 'fa fa-download', '#', '', 0, ['forcenohideoftext'=>1]); // Not Enough Permissions
|
print dolGetButtonTitle($btnLabel, '', 'fa fa-download', '#', '', 0, ['forcenohideoftext'=>1]); // Not Enough Permissions
|
||||||
print dolGetButtonTitle($btnLabel, '', 'fa fa-download', '#', '', 1, ['forcenohideoftext'=>1]); // Active
|
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', '#', '', -1, ['forcenohideoftext'=>1]); // Functionality is disabled
|
||||||
print dolGetButtonTitle($btnLabel, '', 'fa fa-download', '#', '', -2, ['forcenohideoftext'=>1]); // Disabled without info
|
print dolGetButtonTitle($btnLabel, '', 'fa fa-download', '#', '', -2, ['forcenohideoftext'=>1]); // Disabled without info
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user