Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop

This commit is contained in:
Laurent Destailleur 2024-08-28 19:13:48 +02:00
commit b3c28155b7
5 changed files with 8 additions and 2 deletions

View File

@ -252,7 +252,7 @@ class DolEditor
}
*/
},
disableNativeSpellChecker: '.(!getDolGlobalString('CKEDITOR_NATIVE_SPELLCHECKER') ? 'true' : 'false');
disableNativeSpellChecker: '.(getDolGlobalString('CKEDITOR_NATIVE_SPELLCHECKER') ? 'false' : 'true');
if ($this->uselocalbrowser) {
$out .= ','."\n";

View File

@ -184,6 +184,8 @@ function OpenFolder( folderPath )
function LoadFolders( folderPath )
{
console.log("LoadFolders folderPath="+folderPath);
// Clear the folders list.
oListManager.Clear();

View File

@ -131,6 +131,8 @@ oListManager.GetFileRowHtml = function( fileName, fileUrl, fileSize )
function OpenFolder( folderPath )
{
console.log("OpenFolder folderPath="+folderPath);
// Load the resources list for this folder.
window.parent.frames['frmFolders'].LoadFolders( folderPath );
}

View File

@ -742,7 +742,7 @@ function IsAllowedCommand($sCommand)
*/
function GetCurrentFolder()
{
$sCurrentFolder = isset($_GET['CurrentFolder']) ? GETPOST('CurrentFolder', '', 1) : '/';
$sCurrentFolder = isset($_GET['CurrentFolder']) ? GETPOST('CurrentFolder', 'alphanohtml', 1) : '/';
// Check the current folder syntax (must begin and start with a slash).
if (!preg_match('|/$|', $sCurrentFolder)) {

View File

@ -3430,6 +3430,8 @@ if (!GETPOST('hide_websitemenu')) {
// Edit CKEditor
if (getDolGlobalInt('WEBSITE_ALLOW_CKEDITOR')) {
print '<a href="'.$_SERVER["PHP_SELF"].'?website='.$object->ref.'&pageid='.$pageid.'&action=editcontent&token='.newToken().'" class="button bordertransp"'.$disabled.'>'.dol_escape_htmltag("CKEditor").'</a>';
} else {
print '<!-- Add option WEBSITE_ALLOW_CKEDITOR to allow ckeditor -->';
}
print '</span>';