Control Web Panel
Developers => Functions => Topic started by: TheQuantumPharaoh on January 22, 2023, 08:28:03 AM
-
Does anyone know how to set the dark mode for the text editor in the file manager as default? Whenever I save a file it reverts back to light mode so I'm finding myself clicking the dark mode switch constantly. I just want to set it as default as I never use the light mode. Is this possible?
-
Unfortunately, the code editor is IonCube encoded, which makes it rather opaque:
/usr/local/cwpsrv/var/services/users/codeEditor.php
Maybe you could use a browser plugin to flip the form control around:
<select class="form-control" onchange="selectTheme(this.value)" data-ddg-inputtype="unknown">
<option value="default">Light Mode</option>
<option value="monokai">Dark Mode</option>
</select>
Meanwhile, if you want to fix the English grammar of the File Manager interface, the file to edit is here:
/usr/local/cwpsrv/var/services/users/cwp_lang/en/filemanager.ini
-
I'm using a aceEditor with monokai dark theme option in place of cwppro default codeEditor