{"modulePath":"github.com/dracory/nodeadmin","version":"v0.4.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package editor\n\nPackage editor serves the workflow editor — the same Vue app as flowadmin's /editor — as a nodeadmin section selected through ?controller=editor. The index page and its app script are the flowadmin embedded copies, rewritten at serve time so the editor's API calls land on this package's own /api mount.\n\n## Functions\n\n```go\nfunc Editor(w http.ResponseWriter, r *http.Request)\n```\nEditor serves the editor page with nodeadmin chrome and no store — the standalone handler kept for direct mounts. Mounts through nodeadmin.New dispatch to the Section built in buildRoutes, which carries the real store and the Options.DisableChrome flag.\n\n## Types\n\n```go\ntype Section struct {\n\t// contains filtered or unexported fields\n}\n```\nSection serves the workflow editor. Unlike the other sections it writes a standalone page (the embedded flowadmin index document) rather than going through the UiConfig layout, so it carries its own dependencies.\n\n```go\nfunc New(store nodestore.StoreInterface, chrome bool) *Section\n```\nNew builds the editor section. chrome=false emits the editor page without nodeadmin's navbar or section pills so an embedding host can supply its own chrome.\n\n```go\nfunc (s *Section) Editor(w http.ResponseWriter, r *http.Request)\n```\nEditor serves the editor page or one of its assets. action=appjs serves the editor application script; action=codeeditorjs / action=codeeditorcss serve the vendored code-editor bundle; anything else serves the index document. The NodeAdminURL context value supplies the API base so every fetch targets \\\u003cendpoint\u003e/api/\\*.\n\n","path":"github.com/dracory/nodeadmin/editor","name":"editor","synopsis":"Package editor serves the workflow editor — the same Vue app as flowadmin's /editor — as a nodeadmin section selected through ?controller=editor.","isRedistributable":true}
