Enable strict CSP support for ACE

With these changes, ACE no longer requires custom inline styles, removing one further dependency from our CSP style list.
This commit is contained in:
Sebastian Serth
2024-04-13 18:28:41 +02:00
committed by Sebastian Serth
parent 3bfce7f1cb
commit 7b769a7673
2 changed files with 7 additions and 0 deletions

View File

@ -85,4 +85,5 @@ import "ace-builds/webpack-resolver"; // Enable webpack resolver, requires `file
// Enable ACE editor extensions. See https://github.com/ajaxorg/ace/wiki/Extensions
import "ace-builds/src-noconflict/ext-language_tools"; // Enable autocompletion
import "ace-builds/src-noconflict/ext-modelist"; // Enable language mode detection
ace.config.set("useStrictCSP", true); // Enable strict CSP mode
window.ace = ace; // Publish ace in global namespace