public class MonacoEditorInitializer extends Object
MonacoEditorInitializer
initializes Monaco modules by temporarily switching the functions
'__MONACO_AMD_LOADER__.define' and '__MONACO_AMD_LOADER__.require' from Monaco namespace to the global scope.
The global scope already has other libraries occupying namespaces that Monaco cannot override, so this class
temporarily uses the global scope and gives it back to the legacy libraries, when Monaco finishes its work.Constructor and Description |
---|
MonacoEditorInitializer() |
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.