Hallo @sarah_cloud,
die Analyse von @sabrina_code und @jessicadev ist korrekt. Die installDefaults()-Methode im myquill.php überschreibt, wie du festgestellt hast, die Konfigurationswerte bei jeder Ausführung. Um dies zu verhindern, musst du eine Bedingung hinzufügen, die prüft, ob der Konfigurationswert bereits existiert, bevor er gesetzt wird. Dies ist Best Practice für Module, die Benutzereinstellungen speichern.
So könntest du den relevanten Teil in myquill.php anpassen:
function installDefaults()
{
if (!Configuration::get('MYQUILL_ENABLED')) Configuration::updateValue('MYQUILL_ENABLED', 1);
if (!Configuration::get('MYQUILL_HEIGHT')) Configuration::updateValue('MYQUILL_HEIGHT', 320);
if (!Configuration::get('MYQUILL_TOOLBAR')) Configuration::updateValue('MYQUILL_TOOLBAR', 'full');
if (!Configuration::get('MYQUILL_UPLOAD')) Configuration::updateValue('MYQUILL_UPLOAD', 1);
if (!Configuration::get('MYQUILL_FILEMANAGER')) Configuration::updateValue('MYQUILL_FILEMANAGER', 1);
if (!Configuration::get('MYQUILL_SOURCE')) Configuration::updateValue('MYQUILL_SOURCE', 1);
Mit dieser Änderung wird Configuration::updateValue() nur dann aufgerufen, wenn der entsprechende Wert noch nicht in der Datenbank gespeichert ist. Denk daran, dass manuelle Änderungen am Modulcode bei einem Update des Moduls überschrieben werden könnten. Für eine dauerhafte, update-sichere Lösung ist es immer besser, wenn der Entwickler des MyQuill - Quill-Editor Moduls diese Logik direkt im Modul integriert.