CodeMirror-powered GLSL editor component.
editor = Editor(options)
Creates a new editor, where
options is passed directly onto CodeMirror. You
can find a full list here.
container option determines which DOM element to attach the
editor to. By default, this will be
Automatically resize the editor to fill its parent element. This on creating the editor but you'll want to call it again when the window is resized.
Gets the text content of the editor.
Sets the text content of the editor to
The CodeMirror editor instance.
Inlines the base CodeMirror CSS and a default theme respectively. Useful for just getting started quickly, but entirely optional.
MIT. See LICENSE.md for details.