Documentation ¶
Overview ¶
CodeMirror wraps a simple text editor based on CodeMirror.
Users of this package must provide a prefix from which all codemirror files will be loaded and a diretory with the conteents that should be used as the editor.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Editor ¶
type Editor struct { // prefix to remove from the incoming url and to // append for output urls Prefix string // contains filtered or unexported fields }
func (*Editor) HandlerFunc ¶
func (e *Editor) HandlerFunc() http.HandlerFunc
HandlerFunc wraps the editor under the http.HandlerFunc interface
func (*Editor) Scripts ¶
Scripts returns the list of paths that should be include in the script loading section to allow editor parts to be used
Click to show internal directories.
Click to hide internal directories.